-
Notifications
You must be signed in to change notification settings - Fork 254
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (135 loc) · 4.7 KB
/
pyproject.toml
File metadata and controls
150 lines (135 loc) · 4.7 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
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>=62.6",
"wheel",
"setuptools-scm"
]
build-backend = "setuptools.build_meta"
[project]
name = "devito"
description = "Finite Difference DSL for symbolic computation."
license = { file = "LICENSE.md" }
readme = "README.md"
keywords = ["finite-difference", "DSL", "symbolic", "jit", "devito"]
requires-python = ">=3.10,<3.14"
authors = [
{ name = "Imperial College London", email = "g.gorman@imperial.ac.uk" },
{ name = "Fabio Luporini", email = "fabio@devitocodes.com" },
{ name = "Mathias Louboutin", email = "mathias@devitocodes.com" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"License :: OSI Approved :: MIT License",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Operating System :: Unix",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Code Generators",
"Topic :: Software Development :: Compilers"
]
maintainers = [
{ name = "Fabio Luporini", email = "fabio@devitocodes.com" },
{ name = "Mathias Louboutin", email = "mathias@devitocodes.com" },
{ name = "Gerard Gorman", email = "gerard@devitocodes.com" },
]
dynamic = ["version", "dependencies", "optional-dependencies"]
[project.urls]
Documentation = "https://www.devitoproject.org/devito/index.html"
Repository = "https://github.com/devitocodes/devito"
Issues = "https://github.com/devitocodes/devito/issues"
[tool.setuptools.dynamic]
# Read install_requires from requirements.txt
dependencies = { file = ["requirements.txt"] }
[tool.setuptools.dynamic.optional-dependencies]
# Map each extra to its requirements-*.txt
mpi = { file = ["requirements-mpi.txt"] }
nvidia = { file = ["requirements-nvidia.txt"] }
tests = { file = ["requirements-testing.txt"] }
extras = { file = ["requirements-optional.txt"] }
[tool.setuptools.packages.find]
where = ["."]
exclude = ["binder", "docker", "docs", "tests", "examples"]
[tool.setuptools_scm]
fallback_version = "0+untagged"
[tool.ruff]
line-length = 90
[tool.ruff.lint]
# Add the following rule sets
select = ["E", "W", "F", "B", "UP", "SIM", "RUF022"]
# But ignore these inconvenient rules
ignore = ["F403", "E226", "E731", "E275", "F405", "E722", "E741", "W605"]
[tool.isort]
line_length = 90
known_first_party = ["devito", "examples"]
multi_line_output = "VERTICAL_GRID_GROUPED"
# We should really do some work to eliminate this (circular imports):
skip = ["__init__.py"]
[tool.typos]
# For identifiers (variables, functions, classes and the like):
# Ignore words 2 characters or fewer followed by zero or more digits
# Also ignore collections of 20 or more "word character"s
default.extend-ignore-identifiers-re = ["\\b[[:alpha:]]{1,2}\\d*\\b", "\\b\\w{20,}\\b"]
# For words:
# Ignore words 2 characters or fewer followed by one or more digits
# Also ignore collections of 20 or more "word character"s
default.extend-ignore-words-re = ["\\b[[:alpha:]]{1,2}\\d?\\b", "\\b\\w{20,}\\b"]
# Only for known words common abbreviations
# IMPORTANT: Add a comment with the meaning!
[tool.typos.default.extend-identifiers]
# arange - numpy.arange
arange = "arange"
# dorder - derivative order
dorder = "dorder"
# simpify - function in Devito for creating Sympy expressions
simpify = "simpify"
# vas - plural of va
# Used in tests/test_gpu_common.py::TestStreaming::test_streaming_complete (TODO: FIX)
vas = "vas"
# tpe - Thread Pool Executor
tpe = "tpe"
[tool.typos.default.extend-words]
# datas - plural of data?
# optionss - plural of options?
# Horrendous use in builtins/initializers (TODO: FIX)
datas = "datas"
optionss = "optionss"
# HPE - Well known company name
HPE = "HPE"
# Sur - OS name: MacOS Big Sur
Sur = "Sur"
# pointss - plural of points?
# Horrendous use in operator/profiling (TODO: FIX)
pointss = "pointss"
# numer - common abbreviation of numerator
numer = "numer"
# Yto - Very unfortunately appears in a short random binary string in a notebook
Yto = "Yto"
# ges - Random HTML identifier in examples/seismic/tutorials/17_fourier_mode
ges = "ges"
[tool.flake8]
max-line-length = 90
ignore = [
"F403","E226","E731","E275",
"W503","F405","E722","E741",
"W504","W605"
]
exclude = [ ".github" ]
[tool.flake8.nb]
max-line-length = 90
ignore = [
"F403","E226","E731","E275",
"W503","F405","E722","E741",
"W504","W605"
]
exclude = [ ".github" ]