-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
58 lines (51 loc) · 1.44 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
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools", "wheel"] # PEP 508 specifications.
[tool.black]
skip-string-normalization = false
target-version = ["py39", "py310", "py311", "py312", "py313"]
[tool.isort]
profile = "black"
known_third_party = ["pytest"]
[tool.darker]
src = [
"release_tools",
"src",
"setup.py",
]
revision = "origin/main..."
isort = true
[tool.graylint]
src = [
"release_tools",
"src",
"setup.py",
]
revision = "origin/main..."
lint = [
"flake8",
"mypy",
"pydocstyle",
"pylint",
"ruff check",
]
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # Missing type annotation for `self` in method
"COM812", # Trailing comma missing
"D203", # One blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"D400", # First line should end with a period (duplicates D415)
]
[tool.ruff.lint.per-file-ignores]
"src/darkgraylib/tests/*.py" = [
"ANN001", # Missing type annotation for function argument
"ANN201", # Missing return type annotation for public function
"ANN204", # Missing return type annotation for special method `__init__`
"INP001", # File is part of an implicit namespace package. Add an `__init__.py`.
"C408", # Unnecessary `dict` call (rewrite as a literal)
"S101", # Use of `assert` detected
]