generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
174 lines (154 loc) · 4.58 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
[build-system]
requires = ["setuptools>=61"]
build-backend = "setuptools.build_meta"
[project]
name = "flake8-tergeo"
version = "1.0.0"
description = "flake8 plugin which keeps your code clean and tidy"
authors = [{ name = "Kai Mueller", email = "[email protected]"}]
readme = "README.md"
keywords = ["flake8", "plugin", "quality", "linter"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Quality Assurance",
"Typing :: Typed"
]
requires-python = ">=3.9,<4"
dependencies = [
"flake8>=7,<9",
"typing-extensions~=4.4",
"flake8-comprehensions==3.16.0",
"flake8-bugbear==24.12.12",
"flake8-builtins==2.5.0",
"flake8-simplify==0.21.0",
"flake8-pytest-style==2.1.0",
"flake8-typing-imports==1.16.0",
"flake8-docstrings==1.7.0",
"stdlib-list==0.11.0;python_version<'3.10'",
"packaging>=24",
]
[project.license]
text = "Apache-2.0"
[project.urls]
"Issue Tracker" = "https://github.com/SAP/flake8-tergeo/issues"
"Changelog" = "https://github.com/SAP/flake8-tergeo/blob/main/CHANGELOG.md"
[project.optional-dependencies]
dev = [
"pre-commit==4.1.0",
"pylint==3.3.4",
"black==25.1.0",
"isort==6.0.0",
"mypy==1.15.0",
"flake8==7.1.2",
"types-flake8-simplify==0.21.0.0",
"types-flake8-builtins==2.5.0.20240411",
"types-flake8-bugbear==24.12.12.20241214",
"types-flake8-docstrings==1.7.0.3",
"types-flake8-typing-imports==1.16.0.20241013",
"pylint-per-file-ignores==1.4.0",
"types-stdlib-list==0.8.3.4",
]
test = [
"pytest==8.3.4",
"pytest-mock==3.14.0",
"pytest-cov==6.0.0",
"pytest-xdist==3.6.1",
"pytest-randomly==3.16.0",
"pytest-datadir==1.6.1",
"coverage==7.6.12",
"diff-cover==9.2.2",
"flake8-json==24.4.0",
"anys==0.3.1",
]
[tool.setuptools.packages.find]
include = ["_flake8_tergeo"]
[tool.setuptools.package-data]
_flake8_tergeo = ["py.typed"]
[tool.isort]
profile = "black"
add_imports = ["from __future__ import annotations"]
[tool.mypy]
# main config
strict_optional = true
warn_incomplete_stub = true
warn_no_return = true
warn_unreachable = true
strict = true
warn_unused_ignores = false
warn_return_any = false
disable_error_code = ["type-abstract"]
# output
pretty = true
show_column_numbers = true
show_error_codes = true
show_traceback = true
[tool.pylint.basic]
no-docstring-rgx = "^_"
[tool.pylint.design]
min-public-methods = 0
[tool.pylint.master]
max-line-length = 100
py-version = [3, 9]
load-plugins = ["pylint_per_file_ignores"]
[tool.pylint."messages control"]
enable = ["all"]
disable = [
# allow TODO comments
"fixme",
# allow disables
"locally-disabled",
"suppressed-message",
# ignore too-many checks
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-positional-arguments",
"too-many-arguments",
"too-many-locals",
# other checks
"use-implicit-booleaness-not-comparison-to-zero",
"use-implicit-booleaness-not-comparison-to-string",
"global-statement",
]
[tool.pylint.reports]
reports = false
[tool.pylint.similarities]
ignore-imports = true
[tool.coverage.report]
fail_under = 90
show_missing = true
skip_covered = true
[tool.coverage.run]
branch = true
source = ["_flake8_tergeo"]
[tool.diff_cover]
include_untracked = true
fail_under = 90
[project.entry-points."flake8.extension"]
FT = "_flake8_tergeo:Flake8TergeoPlugin"
[tool.pytest.ini_options]
addopts = "--strict-markers --strict-config -p no:legacypath"
filterwarnings = [
# make all warnings an error
"error",
# https://github.com/berkerpeksag/astor/issues/217
"ignore:ast\\.Num is deprecated and will be removed in Python 3\\.14:DeprecationWarning:astor",
# https://github.com/MartinThoma/flake8-simplify/issues/190
"ignore:ast\\..* is deprecated and will be removed in Python 3\\.14:DeprecationWarning:flake8_simplify",
]
xfail_strict = true
[tool.pylint-per-file-ignores]
"/tests/" = "missing-function-docstring,missing-class-docstring,redefined-outer-name,protected-access,unused-argument,import-private-name"