-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
77 lines (58 loc) · 2.19 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "packaging-demo-anashr"
# version = "0.0.5"
authors = [{ name = "Yug", email = "[email protected]" }]
description = "Demo for packaging"
readme = "README.md"
keywords = ["one", "two"]
license = { text = "Apache" }
dependencies = ["numpy"]
dynamic = ['version']
[project.optional-dependencies]
test = ['pytest', 'pytest-cov']
release = ['build', 'twine']
static-code-qa = ['pre-commit']
dev = ['packaging-demo-anashr[test, release, static-code-qa]']
[tool.setuptools]
# Letting setuptools automatically discover packages if not explicitly specified
[tool.setuptools.packages.find]
# Search the current directory
where = ["."]
# Include all packages under 'packaging_demo'
include = ["packaging_demo*", "packaging_demo.*"]
exclude = [] # You can specify patterns to exclude certain packages
namespaces = false # Disable PEP 420 namespace packages if not needed
[tool.setuptools.package-data]
mypkg = ["*.json"]
[tool.black]
line-length = 99
exclude = '/(\.git|\.hg|\.mypy_cache|\.tox|\.venv|_build|buck-out|build|dist|pyproject\.toml)/'
[tool.flake8]
docstring-convention = "all"
ignore = ["D100", "D103", "D104", "D107", "D212", "E501", "W503", "W605", "D203"]
exclude = ["venv"]
max-line-length = 99
# radon
radon-max-cc = 10
[tool.isort]
profile = "black"
multi_line_output = "VERTICAL_HANGING_INDENT"
force_grid_wrap = 2
line_length = 99
[tool.pylint."messages control"]
disable = ["line-too-long", "trailing-whitespace", "missing-function-docstring", "consider-using-f-string", "import-error", "too-few-public-methods", "redefined-outer-name", 'missing-module-docstring', 'pointless-statement', 'invalid-name', 'undefined-variable']
[tool.ruff]
# Enable flake8-bugbear (`B`) rules.
select = ["E", "F", "B", "ERA"]
# Never enforce `E501` (line length violations).
ignore = ["E501", "F401"]
# Avoid trying to fix flake8-bugbear (`B`) violations.
unfixable = ["B"]
line-length = 99
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402"]
"path/to/file.py" = ["E402"]