-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
121 lines (109 loc) · 2.95 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "removestar"
readme = { file = "README.md", content-type = "text/markdown" }
dynamic = ["version"]
description = "A tool to automatically replace 'import *' imports with explicit imports in files"
license = "MIT"
requires-python = ">=3.7"
authors = [
{ name = "Aaron Meurer", email = "[email protected]" },
]
maintainers = [
{ name = "Aaron Meurer", email = "[email protected]" },
{ name = "Saransh Chopra", email = "[email protected]" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"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 :: 3.13",
]
dependencies = [
"pyflakes",
]
[project.optional-dependencies]
nb = [
"nbformat",
"nbconvert",
]
dev = [
"pytest>=6",
"pytest-cov>=3",
"pytest-doctestplus"
]
[project.scripts]
removestar = "removestar.__main__:main"
[project.urls]
"Bug Tracker" = "https://github.com/asmeurer/removestar/issues"
Homepage = "https://www.asmeurer.com/removestar/"
"Source Code" = "https://github.com/asmeurer/removestar"
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "removestar/_version.py"
[tool.hatch.build.targets.sdist]
include = [
"/removestar",
]
[tool.ruff]
line-length = 100 # Default is 88
[tool.ruff.lint]
extend-select = [
"E", "F", "W", # flake8
"ASYNC", # flake8-async
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C9", # mccabe cyclomatic complexity
"I", # isort
"ISC", # flake8-implicit-str-concat
"PERF", # flake8-perf
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
]
ignore = [
"B023", # Function definition does not bind loop variable
"T201", # Print statements
"ISC001", # Conflicts with ruff format
]
unfixable = [
"F841", # Removes unused variables
"T20", # Removes print statements
]
[tool.ruff.lint.mccabe]
max-complexity = 14 # Default is 10
[tool.ruff.lint.pylint]
max-args = 6 # Default is 5
max-statements = 177 # Default is 50
[tool.pytest.ini_options]
minversion = "6.0"
xfail_strict = true
addopts = [
"--doctest-modules"
]
testpaths = [
"removestar",
"tests",
]
log_cli_level = "DEBUG"
filterwarnings = [
"error",
"ignore::DeprecationWarning",
"ignore::UserWarning",
]