-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (123 loc) · 3.52 KB
/
pyproject.toml
File metadata and controls
136 lines (123 loc) · 3.52 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
[build-system]
requires = ["setuptools", "numpy"]
build-backend = "setuptools.build_meta"
[project]
name = "laueimproc"
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = [
"click",
"cloudpickle",
"numpy",
"opencv-contrib-python-headless",
"pillow",
"psutil",
"pyyaml",
"torch",
"tqdm",
]
authors = [
{name = "Robin RICHARD (robinechuca)", email = "serveurpython.oz@gmail.com"},
]
maintainers = [
{name = "Robin RICHARD (robinechuca)", email = "serveurpython.oz@gmail.com"},
]
readme = "README.rst"
license = {file = "LICENSE"}
keywords = [
"laue",
"multigrain",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Environment :: GPU",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Natural Language :: French",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Physics",
]
[project.optional-dependencies]
all = [
"manim",
"matplotlib",
"pdoc3",
"pydocstyle<=6.1.1", # 6.1.2 bug on pylama 8.4.1
"pygraphviz",
"pylama[all]",
"pylama[toml]",
"pytest",
"recommonmark",
"sphinx",
"sphinx-copybutton",
"sphinx-inline-tabs",
"sphinx-rtd-dark-mode",
"sphinx-rtd-theme",
"sphinxcontrib-video",
"sphinxext-opengraph",
]
[project.scripts]
laueimproc = "laueimproc.__main__:main"
laueimproc-convert = "laueimproc.io.__main__:main"
laueimproc-doc = "laueimproc.__main__:main_doc"
laueimproc-test = "laueimproc.testing.__main__:main"
[project.urls]
Repository = "https://github.com/BM32ESRF/laueimproc"
[tool.setuptools.packages.find]
where = [""]
exclude = ["doc", "notebook"]
[tool.setuptools.package-data]
"*" = ["*.jp2"]
[tool.setuptools]
py-modules = ["c_build"]
[tool.setuptools.cmdclass]
build_py = "c_build.Build"
[tool.setuptools.dynamic]
version = {attr = "laueimproc.__version__"}
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Module already imported:pytest.PytestAssertRewriteWarning"
]
markers = [
"slow: marks tests as slow",
]
[tool.pylama]
sort = "E,W,D"
skip = "./doc, ./dist*"
linters = "mccabe,pycodestyle,pydocstyle,pyflakes,mypy,pylint"
# E226 false detection pycodestyle 2.11.1
# D212 and D213 are mutualy exclusive, PEP 257 is in favor of D212
# D211 and D203 are mutualy exclusive, PEP 257 is in favor of D211
# D107 is in contradiction with the numpy doc convention
# D413 disable in the google, numpy, and pep257 convention
ignore = "E226,D213,D203,D107,D413"
max_line_length = 100
[tool.mypy]
cache_dir = "~/.cache/mypy_cache"
ignore_missing_imports = true
show_error_codes = true
[tool.pylint]
# E0611 failed to import c compiled modules
# C0103 method name not conform because qt impose the name
# E1101 'no member' failed in all c extensions
# E1102 'not callable' false detection in pylint 3.1.0
# E1133 'no iterable' false positive in pylint 3.1.0
# E1135 'doesn't support membership test' false positive in pylint 3.1.0
# C0415 'import outside toplevel' solve cyclic import and allow optional modules
disable = "E0611,C0103,E1101,E1102,E1133,E1135,C0415"
extension-pkg-allow-list = [
"laueimproc.geometry.c_metric",
"laueimproc.gmm.c_fit",
"laueimproc.gmm.c_gmm",
"laueimproc.improc.c_find_bboxes",
"laueimproc.improc.spot.c_basic",
"laueimproc.improc.spot.c_extrema",
"laueimproc.improc.spot.c_pca",
"laueimproc.ml.c_dist",
"laueimproc.opti.c_rois",
]
# enable = "all"