-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (88 loc) · 2.34 KB
/
pyproject.toml
File metadata and controls
99 lines (88 loc) · 2.34 KB
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
[project]
name = "template-rust-project"
version = "0.1.0"
description = "Python environment for the template-rust-project"
readme = "README.md"
license = { text = "MIT" }
authors = [
{ name = "Hassan Abedi", email = "hassan.abedi.t+rust@gmail.com" }
]
maintainers = [
{ name = "Hassan Abedi", email = "hassan.abedi.t+rust@gmail.com" }
]
requires-python = ">=3.10,<4.0"
dependencies = [
"maturin[zig] (>=1.8.3,<2.0.0)",
"numpy (>=2.2.6,<3.0.0)",
]
[project.optional-dependencies]
dev = [
"pytest (>=8.3.5,<9.0.0)",
"pytest-cov (>=6.0.0,<7.0.0)",
"pytest-mock (>=3.14.0,<4.0.0)",
"mypy (>=1.11.1,<2.0.0)",
"ruff (>=0.11.0,<0.12.0)",
"twine (>=6.1.0,<7.0.0)",
"mkdocs (>=1.6.1,<2.0.0)",
"mkdocs-material (>=9.6.12,<10.0.0)",
"mkdocstrings-python (>=1.16.10,<2.0.0)",
"pyyaml (>=6.0.1,<7.0.0)",
"rundoc (>=0.2.3,<0.3.0)",
"hypothesis (>=6.150.2,<7.0.0)",
]
[tool.pytest.ini_options]
testpaths = ["python/tests"]
addopts = [
"--tb=short",
"--cov=python",
"--cov-branch",
"--cov-report=term",
"--cov-report=xml",
"-rs"
]
[tool.coverage.run]
branch = true
parallel = true
source = ["."]
omit = ["tests/*"]
[tool.coverage.report]
show_missing = false
skip_empty = true
precision = 2
[tool.mypy]
python_version = "3.10"
ignore_missing_imports = true
disallow_untyped_defs = true
disallow_untyped_calls = true
disallow_incomplete_defs = true
check_untyped_defs = true
warn_return_any = true
strict_optional = true
warn_redundant_casts = true
exclude = "^(tests/)"
[tool.ruff]
exclude = [
".bzr", ".direnv", ".eggs", ".git", ".git-rewrite", ".hg", ".mypy_cache",
".nox", ".pants.d", ".pytype", ".ruff_cache", ".svn", ".tox", ".venv",
"__pypackages__", "_build", "buck-out", "build", "dist", "node_modules",
"venv", "tests"
]
line-length = 100
indent-width = 4
src = ["python"]
target-version = "py310"
[tool.ruff.lint]
select = ["ANN", "E", "F", "I", "W", "B", "RUF", "SIM", "C90", "D"]
ignore = ["D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107"]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"python/tests/**/*.py" = []