generated from KerstenBreuer/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
116 lines (104 loc) · 2.77 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
[build-system]
requires = [
"setuptools>=67.7.2",
]
build-backend = "setuptools.build_meta"
[project]
readme = "README.md"
authors = [
{ name = "KerstenBreuer", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
"Development Status :: 1 - Planning",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries",
"Intended Audience :: Developers",
]
name = "arcticfreeze"
version = "0.1.1"
description = "Enjoy Python on the rocks with deeply (recursively) frozen data structures."
dependencies = [
"immutabledict >=4, <5"
]
[project.optional-dependencies]
pydantic = [
"pydantic >=2, <3",
]
[project.license]
text = "Apache 2.0"
[project.urls]
Repository = "https://github.com/kerstenbreuer/arcticfreeze"
[tool.setuptools.packages.find]
where = [
"src",
]
[tool.ruff.lint]
fixable = [
"UP", # e.g. List -> list
"I", # sort imports
"D", # pydocstyle
]
ignore = [
"E", # pycodestyle errors
"W", # pycodestyle warnings - pycodestyle covered by ruff
"PLW", # pylint warnings
"RUF001", # ambiguous unicode character strings
"RUF010", # explicit conversion to string or repr: !s or !r
"RUF012", # mutable class variables need typing.ClassVar annotation
"N818", # Errors need to have Error suffix
"B008", # function call in arg defaults,
"PLR2004", # magic numbers should be constants
"D205", # blank-line-after-summary
"D400", # first doc line ends in period
"D401", # non-imperative-mood
"D107", # missing docstring in __init__
"D206", # indent-with-spaces (ignored for formatter)
"D300", # triple-single-quotes (ignored for formatter)
]
select = [
"C90", # McCabe Complexity
"F", # pyflakes codes
"I", # isort
"S", # flake8-bandit
"B", # flake8-bugbear
"N", # pep8-naming
"UP", # pyupgrade
"PL", # pylint
"RUF", # ruff
"SIM", # flake8-simplify
"D", # pydocstyle
]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.per-file-ignores]
"scripts/*" = ["PL", "S", "SIM", "D"]
"tests/*" = ["S", "SIM", "PLR", "B011"]
".devcontainer/*" = ["S", "SIM", "D"]
"examples/*" = ["S", "D"]
"__init__.py" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.mypy]
disable_error_code = "import"
show_error_codes = true
exclude = [
'build/lib/',
]
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
no_site_packages = false
[tool.pytest.ini_options]
minversion = "7.1"
asyncio_mode = "strict"
[tool.coverage.paths]
source = [
"src",
"/workspace/src",
"**/lib/python*/site-packages",
]