forked from jgonggrijp/pip-review
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
181 lines (163 loc) · 3.71 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pip-manage"
description = "pip-manage lets you smoothly manage your installed packages."
authors = [
{ name = "realshouzy" },
{ name = "Julian Gonggrijp", email = "j.gonggrijp@gmail.com" },
{ name = "Vincent Driessen" },
]
maintainers = [{ name = "realshouzy" }]
readme = "README.md"
license = { text = "BSD" }
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Topic :: System :: Systems Administration",
]
keywords = [
"pip",
"pip-purge",
"pip-review",
"update",
"autoupdate",
"autouninstall",
"dependencies",
]
requires-python = ">=3.8"
dynamic = ["version", "dependencies"]
[project.urls]
Source = "https://github.com/realshouzy/pip-manage"
[project.optional-dependencies]
# keep in sync with requirements-dev.txt
dev = [
"bandit",
"black",
"covdefaults",
"coverage",
"isort",
"mypy",
"pre-commit",
"pylint",
"pylint-pytest",
"pytest",
"ruff",
"tox",
]
[project.scripts]
pip-review = "pip_manage.pip_review:main"
pip-purge = "pip_manage.pip_purge:main"
[tool.setuptools]
packages = ["pip_manage"]
license-files = ["LICENSE"]
platforms = ["any"]
[tool.setuptools.dynamic]
version = { attr = "pip_manage.__version__" }
dependencies = { file = "requirements.txt" }
[tool.black]
target-version = ["py312", "py311", "py310", "py39", "py38"]
line-length = 88
[tool.isort]
profile = "black"
[tool.mypy]
strict = true
check_untyped_defs = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
warn_redundant_casts = true
show_error_codes = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
warn_return_any = true
strict_equality = true
no_implicit_reexport = true
no_implicit_optional = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_decorators = false
disable_error_code = ["attr-defined"]
[tool.ruff]
lint.select = ["ALL"]
lint.ignore = [
"ANN401",
"B026",
"S603",
"ANN101",
"ANN102",
"PTH123",
"PLR2004",
"ERA001",
"EM101",
"TRY003",
"D100",
"D101",
"D102",
"D103",
"D107",
"UP035",
"UP036",
"C901",
"PLR0912",
"PLR0911",
"B905",
"TD002",
"TD003",
"TRY400",
"S101",
"CPY001",
"FURB110",
"FURB140",
]
lint.fixable = ["ALL"]
lint.unfixable = []
lint.preview = true
show-fixes = true
target-version = "py312"
line-length = 88
format.preview = true
format.docstring-code-format = true
[tool.ruff.lint.extend-per-file-ignores]
"./tests/*_test.py" = ["S101", "SLF001", "PLR0913", "F811", "F401", "PLR0917"]
"./tests/*.py" = ["D104", "PLC2701"]
"./tests/pip_review_test.py" = ["E501"]
[tool.ruff.lint.isort]
known-first-party = ["pip_manage", "tests"]
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.pylint]
disable = [
"R0903",
"C0114",
"C0115",
"C0116",
"R0912",
"R0911",
"W0511",
"W0212",
"R0801",
]
load-plugins = "pylint_pytest"
[tool.bandit]
skips = ["B101"]
exclude_dirs = ["tests"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["*_test.py"]
[tool.coverage.run]
plugins = ["covdefaults"]