-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
153 lines (134 loc) · 3.79 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
151
152
153
[project]
name = "py-droplets"
description = "Python package for describing and analyzing droplets in experiments and simulations"
authors = [
{name = "David Zwicker", email="[email protected]"}
]
license = {text = "MIT"}
readme = "README.md"
requires-python = ">=3.9,<3.13"
dynamic = ["version"]
keywords = ["emulsions", "image-analysis"]
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 = [
"h5py>=2.10",
"matplotlib>=3.1",
"numba>=0.59",
"numpy>=1.22",
"scipy>=1.4",
"py-pde>=0.39",
]
[project.urls]
homepage = "https://github.com/zwicker-group/py-droplets"
documentation = "http://py-droplets.readthedocs.io"
repository = "https://github.com/zwicker-group/py-droplets"
[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 = ["droplets*"]
exclude = ["*.tests", "*.tests.*", "tests.*", "tests"]
namespaces = false
[tool.setuptools.exclude-package-data]
"*" = ["*.tests", "*.tests.*", "tests.*", "tests"]
[tool.setuptools_scm]
write_to = "droplets/_version.py"
[tool.ruff]
target-version = "py38"
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", "my-modules", "self", "local-folder"]
[tool.ruff.lint.isort.sections]
my-modules = ["pde"]
self = ["droplets"]
[tool.black]
target_version = ["py39"]
[tool.isort]
profile = "black"
src_paths = ["droplets", "examples", "scripts", "tests"]
known_first_party = "pde"
known_self = "droplets"
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.coverage.report]
omit = ['*/test*']
[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 = [
"h5py.*",
"IPython.*",
"ipywidgets.*",
"matplotlib.*",
"mpl_toolkits.*",
"mpi4py.*",
"napari.*",
"numba_mpi.*",
"numpy.*",
"pandas.*",
"pyfftw.*",
"pygmsh.*",
"pytest.*",
"qtpy.*",
"scipy.*",
"sympy.*",
"tqdm.*",
]
ignore_missing_imports = true