-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
75 lines (64 loc) · 1.47 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
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.coverage.run]
branch = true
source = ["dianna"]
command_line = "-m pytest"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38,py39,py310,py311
skip_missing_interpreters = true
[testenv]
commands = pytest
extras = dev
"""
[tool.ruff]
extend-exclude = [
"scripts",
]
target-version = "py310"
line-length = 120
# Enable Pyflakes `E` and `F` codes by default.
select = [
"F", # Pyflakes
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
# "C90", # mccabe
"I", # isort
"D", # pydocstyle
# "PL", # Pylint
# "PLC", # Convention
# "PLE", # Error
# "PLR", # Refactor
# "PLW", # Warning
]
ignore = [
'D100', # Missing module docstring
# The following list excludes rules irrelevant to the Google style
'D203',
'D204',
'D213',
'D215',
'D400',
'D401',
'D404',
'D406',
'D407',
'D408',
'D409',
'D413',
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
unfixable = []
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.isort]
known-first-party = ["dianna"]
force-single-line = true
no-lines-before = ["future","standard-library","third-party","first-party","local-folder"]