-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (91 loc) · 2.5 KB
/
pyproject.toml
File metadata and controls
101 lines (91 loc) · 2.5 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64",
"setuptools-scm>=7",
]
[project]
name = "jitcode"
dynamic = ["version"]
description = "Just-in-Time Compilation for Ordinary Differential Equations"
readme = "README.rst"
license = { text = "BSD-3-Clause" }
authors = [
{ name = "Gerrit Ansmann", email = "gansmann@uni-bonn.de" },
]
requires-python = ">=3.6"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Mathematics",
]
dependencies = [
"jitcxde_common>=1.5.4",
"numpy",
"scipy",
"symengine>=0.3.1.dev0",
]
[project.optional-dependencies]
test = [
# NOTE: required for expr.simplify (symengine calls sympy for that)
# https://github.com/symengine/symengine.py/issues/405
"sympy"
]
[project.urls]
Documentation = "https://jitcode.readthedocs.io"
Homepage = "http://github.com/neurophysik/jitcode"
[tool.setuptools.packages.find]
include = [
"jitcode*",
]
[tool.setuptools.package-data]
jitcode = [
"jitced_template.c",
]
[tool.setuptools_scm]
write_to = "jitcode/version.py"
local_scheme = "no-local-version"
[tool.ruff]
target-version = "py37"
line-length = 320
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # flake8
"F", # flake8
"I", # flake8-isort
"NPY", # numpy
"Q", # flake8-quotes
"RUF", # ruff
"UP", # pyupgrade
"W", # flake8
]
ignore = [
"A001", # shadowing-builtin-variable
"A005", # shadowing-builtin-module
"C409", # incorrectly-parenthesized-tuple-in-subscript
"E203", # whitespace-before-punctuation
"E402", # module-import-not-at-top-of-file
"E501", # line-too-long
"E731", # assign-to-lambda
"RUF001", # ambiguous-unicode-character-string
"RUF002", # ambiguous-unicode-character-docstring
"RUF003", # ambiguous-unicode-character-comment
"W191", # indentation-contains-tabs
"W293", # blank-line-with-whitespace
]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "double"
multiline-quotes = "double"
[tool.ruff.lint.isort]
combine-as-imports = true
known-local-folder = [ "jitcode", "scenarios" ]
known-first-party = [ "jitcxde_common" ]
lines-after-imports = 2