-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
150 lines (129 loc) · 3.02 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
[build-system]
requires = [
"setuptools>=64",
"setuptools_scm>=8",
]
build-backend = "setuptools.build_meta"
[project]
name = "matfree"
authors = [
{name="Nicholas Krämer", email="pekra@dtu.dk"}
]
description = "Matrix-free numerical linear algebra."
readme = "README.md"
requires-python=">=3.9"
classifiers = [
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dynamic = ["version"]
[project.optional-dependencies]
cpu = [
"jax[cpu]",
]
test =[
"pytest",
"pytest-cases",
]
format-and-lint =[
"matfree[test]",
"pre-commit",
"blackdoc",
]
doc = [
"mkdocs",
"mkdocs-material",
"mkdocstrings",
"mkdocstrings-python",
"mkdocs-jupyter",
"mkdocs-awesome-pages-plugin",
"matplotlib",
"tqdm",
]
full = [
"matfree[cpu]",
"matfree[test]",
"matfree[format-and-lint]",
"matfree[doc]",
]
[tool.setuptools.packages.find]
where = ["."] # list of folders that contain the packages (["."] by default)
include = ["matfree*"] # package names should match these glob patterns (["*"] by default)
[tool.setuptools_scm]
version_file = "matfree/_version.py"
[project.urls]
"Documentation" = "https://pnkraemer.github.io/matfree/"
"Issue tracker" = "https://github.com/pnkraemer/matfree/issues"
[tool.ruff]
include = ["**.py", "**/pyproject.toml", "**.ipynb"]
[tool.ruff.lint]
# See: https://beta.ruff.rs/docs/rules/
select = [
# pycodestyle (warning, error)
"W",
"E",
# Pyflakes:
"F",
# pyupgrade:
"UP",
# flake8-bugbear:
"B",
# flake8-builtins:
"A",
# flake8-import-conventions:
"ICN",
# flake8-pytest-style:
"PT",
# flake8-quotes:
"Q",
# flake8-return:
"RET",
# flake8-simplify:
"SIM",
# flake8-unused-arguments:
"ARG",
# Ruff-specific rules:
"RUF",
# isort:
"I",
# flake8-errormsg:
"EM",
# tryceratops:
"TRY",
# Docstrings:
"D",
]
ignore = [
# warning: `one-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible.
"D203",
# warning: `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible.
"D213",
# zip(..., strict=True/False) is not supported on Python < 3.10
"B905",
]
[tool.ruff.format]
# Use `\n` line endings for all files
line-ending = "lf"
# Prefer single quotes over double quotes.
quote-style = "double"
skip-magic-trailing-comma = true
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint.per-file-ignores]
# Ignore all directories named `tests`.
"tests/**" = ["D"]
"matfree/backend/**" = ["D"]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
addopts = "-v"
testpaths = [
"tests"
]