-
Notifications
You must be signed in to change notification settings - Fork 50
/
pyproject.toml
181 lines (163 loc) · 3.97 KB
/
pyproject.toml
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
[tool.poetry]
name = "PyArtifactory"
version = "2.5.1"
description = "Typed interactions with the Jfrog Artifactory REST API"
authors = [
"Ananias CARVALHO <carvalhoananias@hotmail.com>",
"Thomas GAUDIN <thomas.gaudin@centraliens-lille.org>",
"Helio Chissini de Castro <heliocastro@gmail.com"
]
license = "MIT"
readme = "README.md"
repository = "https://github.com/anancarv/python-artifactory"
documentation = "https://github.com/anancarv/python-artifactory"
keywords = ["artifactory"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Typing :: Typed",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Filesystems",
"Operating System :: OS Independent"
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/anancarv/python-artifactory/issues"
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2.31"
typing_extensions = "^4.7.1"
pydantic = {extras = ["email"], version = "^2.4.0"}
[tool.poetry.group.dev.dependencies]
ruff = "^0.0.289"
pytest = "^7.4.2"
black = "^23.3.0"
pre-commit = "^2.9.2"
responses = "^0.23.3"
pytest-mock = "^2.0.0"
detect-secrets = "^1.2.0"
pytest-cov = "^4.1.0"
mypy = "^1.5.1"
typed-ast = "^1.5.5"
types-urllib3 = "^1.26.25.14"
types-requests = "^2.31.0.2"
pytest-md = "^0.2.0"
pytest-emoji = "^0.2.0"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 120
[tool.black]
target-version = ["py310"]
line-length = 120
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| foo.py # also separately exclude a file named foo.py in
# the root of the project
)
'''
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
log_cli = true
log_cli_level = "INFO"
[tool.mypy]
files = [
"pyartifactory"
]
plugins = [
"pydantic.mypy"
]
follow_imports = "normal"
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = false
ignore_missing_imports = false
pretty = true
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff]
fix = true
line-length = 120
ignore = [ "N815", "S101", "UP", "A003" ]
extend-select = [
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"A", # flakes8-builtins
"COM", # flakes8-commas
"C4", # flake8-comprehensions
"Q", # flake8-quotes
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
"I", # isort
"N", # pep8 naming
"S", # bandit
]
# Exclude a variety of commonly ignored directories.
extend-exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
# Assume Python 3.8
target-version = "py38"
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.ruff.isort]
required-imports = ["from __future__ import annotations"]
[tool.bandit]
exclude_dirs = ["tests"]