-
Notifications
You must be signed in to change notification settings - Fork 53
/
pyproject.toml
147 lines (127 loc) · 3.87 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
# THIS FILE IS CREATED AUTOMATICALLY AND ALL MANUAL CHANGES WILL BE OVERWRITTEN
# If you want to adjust settings in this file, change scripts/_templates/_pyproject.toml
[project]
name = "py-pde"
description = "Python package for solving partial differential equations"
authors = [
{name = "David Zwicker", email="[email protected]"}
]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.9,<3.13"
dynamic = ["version"]
keywords = ["pdes", "partial-differential-equations", "dynamical-systems"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
# Requirements for setuptools
dependencies = ["matplotlib>=3.1", "numba>=0.59", "numpy>=1.22", "scipy>=1.10", "sympy>=1.9", "tqdm>=4.66"]
[project.optional-dependencies]
io = ["h5py>=2.10", "pandas>=2", "ffmpeg-python>=0.2"]
interactive = ["napari>=0.4.8", "ipywidgets>=8"]
mpi = ["numba-mpi>=0.22", "mpi4py>=3"]
[project.urls]
homepage = "https://github.com/zwicker-group/py-pde"
documentation = "http://py-pde.readthedocs.io"
repository = "https://github.com/zwicker-group/py-pde"
[build-system]
requires = [
"setuptools>=61",
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
zip-safe = false # required for mypy to find the py.typed file
[tool.setuptools.packages.find]
include = ["pde*"]
namespaces = false
[tool.setuptools_scm]
write_to = "pde/_version.py"
[tool.ruff]
target-version = "py39"
exclude = ["scripts/templates"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
select = [
"UP", # pyupgrade
"I", # isort
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"LOG", # flake8-logging
"G", # flake8-logging-format
"PIE", # flake8-pie
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SIM", # flake8-simplify
"PTH", # flake8-use-pathlib
]
ignore = ["B007", "B027", "B028", "SIM108", "ISC001", "PT006", "PT011", "RET504", "RET505", "RET506"]
[tool.ruff.lint.isort]
section-order = ["future", "standard-library", "third-party", "first-party", "self", "local-folder"]
[tool.ruff.lint.isort.sections]
self = ["pde", "fixtures"]
[tool.black]
target_version = ["py39"]
exclude = "scripts/templates"
[tool.isort]
profile = "black"
src_paths = ["pde", "examples", "scripts", "tests"]
known_self = ["pde", "fixtures"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "SELF", "LOCALFOLDER"]
[tool.pytest.ini_options]
addopts = "--strict-markers"
filterwarnings = [
'ignore:.*importing the ABCs from.*:DeprecationWarning',
'ignore:.*IPython.utils.signatures backport for Python 2 is deprecated.*:DeprecationWarning',
'ignore:.*scipy.sparse.*:DeprecationWarning',
]
[tool.mypy]
python_version = "3.9"
plugins = "numpy.typing.mypy_plugin"
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "numba.*"
ignore_missing_imports = true
ignore_errors = false
follow_imports = "skip"
follow_imports_for_stubs = true
[[tool.mypy.overrides]]
module = [
"ffmpeg.*",
"h5py.*",
"IPython.*",
"ipywidgets.*",
"matplotlib.*",
"mpl_toolkits.*",
"mpi4py.*",
"napari.*",
"numba_mpi.*",
"numpy.*",
"pandas.*",
"pyfftw.*",
"pytest.*",
"qtpy.*",
"scipy.*",
"sympy.*",
"tqdm.*",
]
ignore_missing_imports = true