-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpyproject.toml
71 lines (61 loc) · 1.79 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
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
[tool.setuptools_scm]
write_to = "mpl_interactions/_version.py"
[tool.black]
line-length = 100
[tool.isort]
profile = "black"
line_length = 100
[tool.pytest.ini_options]
testpaths = ["docs/examples", "tests"]
norecursedirs = [
".ipynb_checkpoints",
"devlop",
"docs/examples/gallery",
"node_modules",
]
addopts = [
"--current-env",
"--doctest-continue-on-failure",
"--doctest-modules",
"--ignore-glob=docs/examples/*.py",
"--mpl",
"--nbval",
]
# https://github.com/charliermarsh/ruff
[tool.ruff]
line-length = 100
exclude = ["docs/examples/devlop/*.ipynb"]
[tool.ruff.lint]
extend-select = [
"E", # style errors
"F", # flakes
"D", # pydocstyle
"I001", # isort
"U", # pyupgrade
# "N", # pep8-naming
# "S", # bandit
"C", # flake8-comprehensions
"B", # flake8-bugbear
"A001", # flake8-builtins
"RUF", # ruff-specific rules
"RUF100", # Unused noqa directive
]
extend-ignore = [
"D100", # Missing docstring in public module
"D107", # Missing docstring in __init__
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"D213", # Multi-line docstring summary should start at the second line
"D413", # Missing blank line after last section
"D416", # Section name should end with a colon
"C901", # function too complex
]
[tool.ruff.lint.per-file-ignores]
"ipyplot.py" = ["F401"]
"tests/*.py" = ["D"]
"__init__.py" = ["E402", "F403", "D104"]
"docs/conf.py" = ["A001", "C901", "D200", "D400", "D415"]
"docs/examples/**/*.py" = ["D400", "D415", "D205", "D103"]
"docs/examples/**/*.ipynb" = ["D400", "D415", "D205", "D103", "F811", "E402"]