-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (98 loc) · 2.33 KB
/
pyproject.toml
File metadata and controls
106 lines (98 loc) · 2.33 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
101
102
103
104
105
106
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "zeropybench"
dynamic = ['version']
description = "A multidimensional benchmarking library with minimal overhead"
authors = [
{ name = "Pierre Chanial" }
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Science/Research',
'Topic :: Software Development :: Debuggers',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Programming Language :: Python :: 3.14',
]
dependencies = [
"matplotlib",
"polars",
]
[dependency-groups]
dev = [
{include-group = 'docs'},
'jax>=0.6; python_version=="3.10"',
'jax>=0.9; python_version>="3.11"',
'pytest>=9.0',
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
'pytest-notebook>=0.10',
]
docs = [
'sphinx>=7.0.0',
'furo>=2024.0.0',
'myst-nb>=1.0.0',
'linkify-it-py>=2.0.0',
'jupyter>=1.0.0',
'matplotlib>=3.7.0',
'numpy>=1.24.0',
'pillow>=9.0.0',
'visu-hlo>=0.1.0',
]
cuda12 = ['jax[cuda12]>=0.6']
cuda13 = ['jax[cuda13]>=0.7; python_version>="3.11"']
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_also = [
'from typing_extensions import',
"assert False, 'unreachable'",
]
[tool.pytest]
testpaths = ['tests']
addopts = [
'--verbose',
'--tb=short',
'--strict-markers',
'--strict-config',
'--color=yes',
'--cov=zeropybench',
'--no-cov-on-fail',
]
filterwarnings = [
'ignore::DeprecationWarning',
'ignore::PendingDeprecationWarning',
'ignore::pytest.PytestRemovedIn9Warning',
]
nb_test_files = true
nb_diff_ignore = [
'/cells/*/execution_count',
'/cells/*/outputs',
'/metadata/language_info',
]
[tool.hatch.version]
source = 'vcs'
[tool.ruff]
line-length = 100
fix = true # autofix issues
force-exclude = true # useful with ruff-pre-commit plugin
src = ['src', 'tests']
[tool.ruff.lint]
select = [
'E', # pycodestyle-errors
'F', # pyflakes
'I', # isort
'UP', # pyupgrade
'T10', # flake8-debugger
]
ignore = ['E501']
[tool.ruff.format]
quote-style = 'single'