-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathpyproject.toml
200 lines (167 loc) · 5.54 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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools",
]
[project]
name = "pip-check-reqs"
description = "Find packages that should or should not be in requirements for a project"
keywords = [
"lint",
"pip",
]
maintainers = [
{ name = "Adam Dangoor", email = "[email protected]" },
{ name = "Richard Jones", email = "[email protected]" },
]
authors = [
{ name = "Adam Dangoor", email = "[email protected]" },
{ name = "Richard Jones", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"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 :: Build Tools",
]
dynamic = [
"dependencies",
"optional-dependencies",
"readme",
"version",
]
urls.Changelog = "https://github.com/r1chardj0n3s/pip-check-reqs/blob/master/CHANGELOG.rst"
urls.Homepage = "https://github.com/r1chardj0n3s/pip-check-reqs"
scripts.pip-extra-reqs = "pip_check_reqs.find_extra_reqs:main"
scripts.pip-missing-reqs = "pip_check_reqs.find_missing_reqs:main"
[tool.setuptools]
packages = [
"pip_check_reqs",
]
[tool.setuptools.dynamic]
version = { attr = "pip_check_reqs.__version__" }
readme = { file = "README.rst", content-type = "text/x-rst" }
dependencies = { file = "requirements.txt" }
optional-dependencies = { dev = { file = "test-requirements.txt" } }
[tool.ruff]
target-version = "py39"
line-length = 79
lint.select = [
"ALL",
]
lint.ignore = [
# We are missing too many docstrings to quickly fix now.
"D100",
"D103",
"D104",
"D105",
"D203",
"D213",
# Allow functions to take as many arguments as they want.
"PLR0913",
# Allow 'assert' in tests as it is the standard for pytest.
# Also, allow 'assert' in other code as it is the standard for Python type hint
# narrowing - see
# https://mypy.readthedocs.io/en/stable/type_narrowing.html#type-narrowing-expressions.
"S101",
]
# Do not automatically remove commented out code.
# We comment out code during development, and with VSCode auto-save, this code
# is sometimes annoyingly removed.
lint.unfixable = [
"ERA001",
]
[tool.pylint]
[tool.pylint.'MASTER']
# Pickle collected data for later comparisons.
persistent = true
# Use multiple processes to speed up Pylint.
jobs = 0
# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins = [
'pylint.extensions.docparams',
'pylint.extensions.no_self_use',
]
# Allow loading of arbitrary C extensions. Extensions are imported into the
# active Python interpreter and may run arbitrary code.
unsafe-load-any-extension = false
[tool.pylint.'MESSAGES CONTROL']
# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
# multiple time (only on the command line, not in the configuration file where
# it should appear only once). See also the "--disable" option for examples.
enable = [
'spelling',
'useless-suppression',
]
# Disable the message, report, category or checker with the given id(s). You
# can either give multiple identifiers separated by comma (,) or put this
# option multiple times (only on the command line, not in the configuration
# file where it should appear only once).You can also use "--disable=all" to
# disable everything first and then reenable specific checks. For example, if
# you want to run only the similarities checker, you can use "--disable=all
# --enable=similarities". If you want to run only the classes checker, but have
# no Warning level messages displayed, use"--disable=all --enable=classes
# --disable=W"
disable = [
'too-few-public-methods',
'too-many-locals',
'too-many-arguments',
'too-many-instance-attributes',
'too-many-return-statements',
'too-many-lines',
'locally-disabled',
# Let ruff handle long lines
'line-too-long',
# Let ruff handle unused imports
'unused-import',
# Let isort deal with sorting
'ungrouped-imports',
# We don't need everything to be documented because of mypy
'missing-type-doc',
'missing-return-type-doc',
# Too difficult to please
'duplicate-code',
# Let ruff handle imports
'wrong-import-order',
# It would be nice to add this, but it's too much work
"missing-function-docstring",
# We will remove this in issue 97
"deprecated-module",
]
[tool.pylint.'FORMAT']
# Allow the body of an if to be on the same line as the test if there is no
# else.
single-line-if-stmt = false
[tool.pylint.'SPELLING']
# Spelling dictionary name. Available dictionaries: none. To make it working
# install python-enchant package.
spelling-dict = 'en_US'
# A path to a file that contains private dictionary; one word per line.
spelling-private-dict-file = 'spelling_private_dict.txt'
# Tells whether to store unknown words to indicated private dictionary in
# --spelling-private-dict-file option instead of raising a message.
spelling-store-unknown-words = 'no'
[tool.pyproject-fmt]
keep_full_version = true
max_supported_python = "3.13"
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]
[tool.mypy]
strict = true
[tool.pyright]
typeCheckingMode = "strict"