-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
82 lines (72 loc) · 1.84 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
[project]
name = "{{cookiecutter.project_name}}"
description = "{{cookiecutter.description}}"
version = "0.0.0"
readme = "README.md"
requires-python = ">=3.11"
dependencies = []
[project.optional-dependencies]
dev = [
"build~=1.0",
"pre-commit~=4.0",
"pytest~=8.0",
"ruff~=0.8.1",
"twine~=6.0",
]
[build-system]
requires = ["setuptools~=75.6", "wheel~=0.42"]
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests*", "node_modules*", "build*"]
[tool.pyright]
venvPath = "."
venv = ".venv"
exclude = ["**/node_modules", "**/__pycache__", "**/.*", "build"]
strictListInference = true
strictDictionaryInference = true
strictParameterNoneValue = true
reportTypedDictNotRequiredAccess = false
reportIncompatibleVariableOverride = true
reportIncompatibleMethodOverride = true
reportMatchNotExhaustive = true
reportUnnecessaryTypeIgnoreComment = true
[tool.ruff]
line-length = 120
# first-party imports for sorting
src = ["."]
fix = true
show-fixes = true
[tool.ruff.lint]
# rules to enable/ignore
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # pycodestyle
"ANN", # type annotations
"N", # pep8-naming
"B", # bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"SLF", # flake8-self
"UP", # pyupgrade
"PERF", # perflint
"RUF", # ruff-specific
"SIM", # flake8-simplify
"S113", # request-without-timeout
"ASYNC", # flake8-async
]
ignore = [
# allow no return type from dunder methods
"ANN204",
# allow == True because pandas dataframes overload equality
"E712",
]
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
[tool.ruff.lint.per-file-ignores]
# test functions don't need return types
"tests/*" = ["ANN201", "ANN202"]
[tool.ruff.lint.flake8-annotations]
# allow *args: Any, **kwargs: Any
allow-star-arg-any = true