-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
100 lines (80 loc) · 1.93 KB
/
pyproject.toml
File metadata and controls
100 lines (80 loc) · 1.93 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
100
[project]
name = "partial_cythonization"
version = "0.1.0"
description = "A project demonstrating partial Cythonization."
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Frederic De Groef", email = "f.degroef@gmail.com"}]
dependencies = [
"click>=7",
"cython>=0.29.0",
"setuptools>=42.0.0",
"toml"
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov",
"numba",
"numpy>1.24.4",
]
lint = [
"ruff",
"ty"
]
[tool.black]
line-length = 120
[tool.ruff]
line-length = 120
[tool.coverage.run]
branch = false
[tool.coverage.report]
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]
include = [
"partial_cythonization/*",
"tests/*"
]
omit = ["project_to_obfuscate/*"]
[tool.pixi.environments]
test = ["test"]
lint = ["lint", "default"]
[tool.pixi.workspace]
name = "partial_cythonization"
channels = ["conda-forge"]
platforms = ["osx-arm64", "win-64", "linux-64"]
[tool.pixi.pypi-dependencies]
partial_cythonization = { path = ".", editable = true }
[tool.pixi.tasks]
[tool.pixi.feature.test.tasks]
test = "pytest tests -v"
testcov = "pytest tests -v --cov"
[tool.pixi.feature.lint.tasks]
check = "ruff check ."
fix = "ruff check . --fix"
format = "ruff format --check ."
fd = "ruff format --check --diff ."
typecheck = "ty check partial_cythonization tests"
[tool.pixi.dependencies]
cython = "*"
click = "8.2.*"
setuptools = "*"
toml = "*"
[tool.pixi.feature.test.dependencies]
pytest = "*"
pytest-cov = "*"
numba = "*"
[tool.pixi.feature.lint.dependencies]
ruff = "*"