-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
110 lines (95 loc) · 2.51 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
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
[build-system]
requires = ["scikit-build-core", "nanobind"]
build-backend = "scikit_build_core.build"
[project]
name = "whirlwind"
requires-python = ">=3.9"
dependencies = ["numpy>=1.21", "scipy>=1.8"]
dynamic = ["version"]
[project.optional-dependencies]
dev = ["pre-commit"]
test = ["pytest>=6", "pytest-cov>=3"]
[tool.black]
preview = true
[tool.mypy]
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
python_version = "3.9"
strict = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = ["whirlwind.graph.*", "whirlwind.network.*", "whirlwind.spline.*"]
disable_error_code = ["attr-defined", "no-any-return", "type-var", "valid-type"]
[[tool.mypy.overrides]]
module = "test.*"
disable_error_code = ["misc", "no-untyped-def"]
[tool.numpydoc_validation]
checks = [
"all",
"ES01", # No extended summary found
"EX01", # No examples section found
"SA01", # See Also section not found
]
exclude = ['^__\S+__$', '^test_\S+$']
override_SS05 = ['^\S+ss ']
[tool.pytest.ini_options]
addopts = [
"-ra",
"--showlocals",
"--strict-markers",
"--strict-config",
"--cov=whirlwind",
]
filterwarnings = ["error"]
log_cli_level = "INFO"
minversion = "6"
testpaths = ["test"]
xfail_strict = true
[tool.ruff]
src = ["src"]
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # pycodestyle (errors)
"EM", # flake8-errmsg
"EXE", # flake8-executable
"F", # Pyflakes
"FBT", # flake8-boolean-trap
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle (warnings)
"YTT", # flake8-2020
]
ignore = [
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"PLR", # Pylint Refactor
]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.per-file-ignores]
"test/**" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/whirlwind/_version.py"]
[tool.setuptools_scm]
version_file = "src/whirlwind/_version.py"