-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
64 lines (59 loc) · 1.7 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
[build-system]
# Minimum requirements for the build system to execute.
requires = ["setuptools>=42"] # PEP 508 specifications.
build-backend = "setuptools.build_meta"
[tool.semantic_release]
version_variable = "setup.py:__version__"
version_source = "tag"
[tool.black]
line-length = 107
[tool.ruff]
line-length = 107
pydocstyle.convention = "google"
isort.split-on-trailing-comma = false
select = [ # from pymatgen
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle error
"EXE", # flake8-executable
"F", # pyflakes
"FLY", # flynt
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"PD", # pandas-vet
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"PYI", # flakes8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"TID", # tidy imports
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warning
"YTT", # flake8-2020
]
ignore = [
"B028", # No explicit stacklevel keyword argument found
"D101", # Missing docstring in public class (docstring in init instead)
"D200", # One-line docstring should fit on one line with quotes
"D205", # 1 blank line required between summary line and description
"D212", # Multi-line docstring summary should start at the first line
"PLR2004", # Magic number
"PLR", # pylint refactor
]
[tool.ruff.per-file-ignores]
"tests/*" = ["D102", "D103"]
"docs/*" = ["D100"]
[tool.docformatter]
recursive = true
pre-summary-newline = true
make-summary-multi-line = true
wrap-summaries = 79
wrap-descriptions = 79