-
Notifications
You must be signed in to change notification settings - Fork 16
/
pyproject.toml
137 lines (122 loc) · 2.9 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pytato"
version = "2024.1"
description = "Get Descriptions of Array Computations via Lazy Evaluation"
readme = "README.rst"
license = "MIT"
requires-python = "~=3.10"
authors = [
{ name = "Andreas Kloeckner", email = "[email protected]" },
{ name = "Matt Wala" },
{ name = "Xiaoyu Wei" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"bidict",
"immutabledict",
"loopy>=2020.2",
"pytools>=2024.1.21",
"pymbolic>=2024.2",
"typing_extensions>=4",
]
[project.urls]
Homepage = "https://github.com/inducer/pytato"
[tool.hatch.build.targets.sdist]
include = [
"/pytato",
]
[tool.ruff.lint]
preview = true
extend-select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"I", # flake8-isort
"N", # pep8-naming
"Q", # flake8-quotes
"W", # pycodestyle
"NPY", # numpy
"RUF",
"UP",
"TC",
]
extend-ignore = [
"E226",
"E241",
"E242",
"E265",
"N802",
"E402",
"N814",
"N817",
"C90",
# numpy random generators---disable for now
"NPY002",
]
allowed-confusables = [
"∪", # union
" ", # nbsp
]
[tool.ruff.lint.per-file-ignores]
"examples/advection.py" = ["B023"]
"test/test_linalg.py" = ["N806"]
"doc/*.py" = ["I002"]
"examples/*.py" = ["I002"]
[tool.ruff.lint.isort]
known-first-party = ["pytools", "pymbolic", "loopy", "pyopencl"]
known-local-folder = ["pytato"]
lines-after-imports = 2
combine-as-imports = true
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "double"
docstring-quotes = "double"
multiline-quotes = "double"
[tool.mypy]
strict = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = [
"islpy",
"pyopencl.*",
"jax.*",
"pygments.*",
"mako.*",
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"pytato.raising",
]
# We'll be getting rid of it, no point in fixing it.
ignore_errors = true
[tool.typos.default]
extend-ignore-re = [
"(?Rm)^.*(#|//)\\s*spellchecker:\\s*disable-line$"
]
[tool.typos.default.extend-words]
# like the numpy function, array range
arange = "arange"
[tool.typos.files]
extend-exclude = [
]