-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
115 lines (99 loc) · 3.51 KB
/
Copy pathpyproject.toml
File metadata and controls
115 lines (99 loc) · 3.51 KB
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
[project]
dynamic = ["readme"]
name = "mypackage" # TODO: replace with project name
version = "0.0.0" # TODO: replace with initial version
license = { file = "LICENSE" }
description = "" # TODO: add description
keywords = [] # TODO: add keywords
classifiers = [] # TODO: add classifiers from <https://pypi.org/classifiers/>
authors = [] # TODO: add authors
maintainers = [] # TODO: add maintainers or remove field
requires-python = ">=3.12" # TODO: lock python version requirements
dependencies = []
[dependency-groups]
dev = []
[tool.codespell]
ignore-words = ".codespell-ignore"
[tool.ruff]
extend-include = ["tests/**/*.py", "noxfile.py"]
fix = true
[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D100", # undocumented-public-module
"D101", # undocumented-public-class
"D102", # undocumented-public-method
"D103", # undocumented-public-function
"D104", # undocumented-public-package
"D105", # undocumented-magic-method
"D106", # undocumented-public-nested-class
"D107", # undocumented-public-init
# --- Recommended by ruff (Formatter Compatibility) ---
# These rules are disabled to avoid conflicts with the ruff formatter.
# See: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191", # tab-indentation
"E111", # indentation-with-invalid-multiple
"E114", # indentation-with-invalid-multiple-comment
"E117", # over-indented
"D206", # docstring-tab-indentation
"D300", # triple-single-quotes
"Q000", # bad-quotes-inline-string
"Q001", # bad-quotes-multiline-string
"Q002", # bad-quotes-docstring
"Q003", # avoidable-escaped-quote
"Q004", # unnecessary-escaped-quote
"COM812", # missing-trailing-comma
"COM819", # prohibited-trailing-comma
"ISC001", # recommended to disable to avoid conflicts with formatter
"ISC002", # multi-line-implicit-string-concatenation
]
task-tags = ["HACK"]
[tool.ruff.lint.extend-per-file-ignores]
"**/*.ipynb" = [
"D100", # undocumented-public-module
"D101", # undocumented-public-class
"D102", # undocumented-public-method
"D103", # undocumented-public-function
"D104", # undocumented-public-package
"D105", # undocumented-magic-method
"D106", # undocumented-public-nested-class
"D107", # undocumented-public-init
"T201", # print
"T203", # pprint
]
"tests/**.py" = [
"D100", # undocumented-public-module
"D101", # undocumented-public-class
"D102", # undocumented-public-method
"D103", # undocumented-public-function
"D104", # undocumented-public-package
"D105", # undocumented-magic-method
"D106", # undocumented-public-nested-class
"D107", # undocumented-public-init
"S101", # assert
"PLR2004", # magic-value-comparison
"ANN", # flake8-annotations
"INP001", # implicit-namespace-package
]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.setuptools.dynamic]
readme = { file = ["README.md"], content-type = "text/markdown" }
[tool.tox]
requires = ["tox-uv"]
env_list = ["lint", "typecheck"]
[tool.tox.env.lint]
description = "Lint: ruff"
no_package = true
deps = "ruff"
commands = [["ruff", "check"], ["ruff", "format", "--check"]]
[tool.tox.env.typecheck]
description = "Type: ty"
no_package = false
deps = "ty"
commands = [["ty", "check"]]