-
Notifications
You must be signed in to change notification settings - Fork 32
/
pyproject.toml
53 lines (47 loc) · 1.29 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
[build-system]
requires = ["setuptools>=61", "wheel", "setuptools_scm[toml]>=8"]
[tool.setuptools_scm]
write_to = "cubedash/_version.py"
[tool.black]
line-length = 88
target_version = ['py310', 'py311', 'py312', 'py313']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| cubedash/_version\.py
)/
'''
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
# Which checkers to enable?
select = [
"A", # Don't shadow built-ins
"E", # pycodestyle
"EXE", # Shebangs+Executable permisssions should match
"F", # pyflakes
"G", # Use logging formatter, not manual string concat
"I", # Auto-sort imports
"ICN", # Use standard import names, like np for numpy
"N", # pep8-naming
"NPY", # Numpy
# "RUF", # Ruf-specific python rules?
# "S", # Bandit (security) -- explore warnings and enable in future?
]
[tool.ruff.lint.per-file-ignores]
# The file deliberately doesn't put the import at the top, and we can't avoid global overrides
"docs/conf.py" = ["E402", "A001", "EXE001"]
# Matching old behaviour: We auto-format with the smaller line default
# ... but only enforce line length to be under this larger 120 limit.
[tool.ruff.lint.pycodestyle]
max-line-length = 120