summaryrefslogtreecommitdiff
path: root/pyproject.toml
blob: 77f6b2c86f0730a11f00d7c2ddf6a6235876aa06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "python-gitlab"
description="A python wrapper for the GitLab API"
readme = "README.rst"
authors = [
    {name = "Gauvain Pocentek", email= "gauvain@pocentek.net"}
]
maintainers = [
    {name = "John Villalovos", email="john@sodarock.com"},
    {name = "Max Wittig", email="max.wittig@siemens.com"},
    {name = "Nejc Habjan", email="nejc.habjan@siemens.com"},
    {name = "Roger Meier", email="r.meier@siemens.com"}
]
requires-python = ">=3.7.0"
dependencies = [
    "requests>=2.25.0",
    "requests-toolbelt>=0.9.1"
]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Environment :: Console",
    "Intended Audience :: System Administrators",
    "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
    "Natural Language :: English",
    "Operating System :: POSIX",
    "Operating System :: Microsoft :: Windows",
    "Programming Language :: Python",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.7",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10"
]
keywords = ["api", "client", "gitlab", "python", "python-gitlab", "wrapper"]
license = {file = "COPYING"}
dynamic = ["version"]

[project.optional-dependencies]
autocompletion = ["argcomplete>=1.10.0,<3"]
yaml = ["PyYaml>=5.2"]

[project.scripts]
gitlab = "gitlab.cli:main"

[project.urls]
Homepage = "https://github.com/python-gitlab/python-gitlab"
Changelog = "https://github.com/python-gitlab/python-gitlab/blob/main/CHANGELOG.md"
Documentation = "https://python-gitlab.readthedocs.io"
Source = "https://github.com/python-gitlab/python-gitlab"

[tool.setuptools.packages.find]
exclude = ["docs*", "tests*"]

[tool.setuptools.dynamic]
version = { attr = "gitlab._version.__version__" }

[tool.isort]
profile = "black"
multi_line_output = 3
order_by_type = false

[tool.mypy]
files = "."
exclude = "build/.*"
strict = true

[[tool.mypy.overrides]] # Overrides for currently untyped modules
module = [
    "docs.*",
    "docs.ext.*",
    "tests.*",
    "tests.functional.*",
    "tests.functional.api.*",
    "tests.unit.*"
]
ignore_errors = true

[tool.semantic_release]
branch = "main"
build_command = "pip install build && python -m build"
version_variable = "gitlab/_version.py:__version__"
commit_subject = "chore: release v{version}"
commit_message = ""

[tool.pylint.messages_control]
max-line-length = 88
jobs = 0  # Use auto-detected number of multiple processes to speed up Pylint.
# TODO(jlvilla): Work on removing these disables over time.
disable = [
    "arguments-differ",
    "arguments-renamed",
    "broad-except",
    "cyclic-import",
    "duplicate-code",
    "import-outside-toplevel",
    "invalid-name",
    "missing-class-docstring",
    "missing-function-docstring",
    "missing-module-docstring",
    "protected-access",
    "redefined-builtin",
    "signature-differs",
    "too-few-public-methods",
    "too-many-ancestors",
    "too-many-arguments",
    "too-many-branches",
    "too-many-instance-attributes",
    "too-many-lines",
    "too-many-locals",
    "too-many-statements",
    "unsubscriptable-object",
]

[tool.pytest.ini_options]
xfail_strict = true

# If 'log_cli=True' the following apply
# NOTE: If set 'log_cli_level' to 'DEBUG' will show a log of all of the HTTP requests
# made in functional tests.
log_cli_level = "INFO"
log_cli_format = "%(asctime)s.%(msecs)03d [%(levelname)8s] (%(filename)s:%(funcName)s:L%(lineno)s) %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"