AdsorPy 1.2.2a4__tar.gz → 1.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/LICENSE.md +1 -1
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/PKG-INFO +91 -20
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/README.md +3 -3
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/pyproject.toml +104 -52
- adsorpy-1.3.0/sbom.cdx.json +31876 -0
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/__init__.py +2 -0
- adsorpy-1.3.0/src/adsorpy/assets/Icon_attribution.txt +80 -0
- adsorpy-1.3.0/src/adsorpy/assets/book-open-list.png +0 -0
- adsorpy-1.3.0/src/adsorpy/assets/book-question.png +0 -0
- adsorpy-1.3.0/src/adsorpy/assets/bug--exclamation.png +0 -0
- adsorpy-1.3.0/src/adsorpy/assets/door-open-out.png +0 -0
- adsorpy-1.3.0/src/adsorpy/gui.py +2746 -0
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/molecule_colour.json +1 -1
- adsorpy-1.3.0/src/adsorpy/molecule_lib.py +1431 -0
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/randomsequentialadsorption.py +629 -233
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/rsa_calculator.py +14 -13
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/rsa_config.py +5 -1
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/run_simulation.py +168 -41
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/types.py +5 -1
- adsorpy-1.3.0/src/adsorpy/vdw_radii.json +95 -0
- adsorpy-1.2.2a4/.github/CODEOWNERS +0 -1
- adsorpy-1.2.2a4/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
- adsorpy-1.2.2a4/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
- adsorpy-1.2.2a4/.github/PULL_REQUEST_TEMPLATE.md +0 -19
- adsorpy-1.2.2a4/.github/dependabot.yml +0 -38
- adsorpy-1.2.2a4/.github/pr-prefix-labeller.yml +0 -17
- adsorpy-1.2.2a4/.github/workflows/codeql.yml +0 -77
- adsorpy-1.2.2a4/.github/workflows/dependency-review.yml +0 -27
- adsorpy-1.2.2a4/.github/workflows/docs-ci.yml +0 -76
- adsorpy-1.2.2a4/.github/workflows/publish_to_PyPI.yml +0 -387
- adsorpy-1.2.2a4/.github/workflows/scorecard.yml +0 -83
- adsorpy-1.2.2a4/.github/workflows/tests-ci.yml +0 -72
- adsorpy-1.2.2a4/.pre-commit-config.yaml +0 -10
- adsorpy-1.2.2a4/CHANGELOG.md +0 -138
- adsorpy-1.2.2a4/CODE_OF_CONDUCT.md +0 -128
- adsorpy-1.2.2a4/CONTRIBUTING.md +0 -151
- adsorpy-1.2.2a4/SECURITY.md +0 -48
- adsorpy-1.2.2a4/audit_trail.txt +0 -2259
- adsorpy-1.2.2a4/dist1/adsorpy-1.2.2a4-py3-none-any.whl +0 -0
- adsorpy-1.2.2a4/dist1/adsorpy-1.2.2a4.tar.gz +0 -0
- adsorpy-1.2.2a4/docs/Makefile +0 -20
- adsorpy-1.2.2a4/docs/make.bat +0 -35
- adsorpy-1.2.2a4/docs/source/adsorpy.molecule_lib.rst +0 -7
- adsorpy-1.2.2a4/docs/source/adsorpy.randomsequentialadsorption.rst +0 -7
- adsorpy-1.2.2a4/docs/source/adsorpy.rsa_calculator.rst +0 -7
- adsorpy-1.2.2a4/docs/source/adsorpy.rsa_config.rst +0 -7
- adsorpy-1.2.2a4/docs/source/adsorpy.rst +0 -28
- adsorpy-1.2.2a4/docs/source/adsorpy.run_simulation.rst +0 -7
- adsorpy-1.2.2a4/docs/source/adsorpy.types.rst +0 -7
- adsorpy-1.2.2a4/docs/source/conf.py +0 -121
- adsorpy-1.2.2a4/docs/source/index.rst +0 -28
- adsorpy-1.2.2a4/docs/source/modules.rst +0 -7
- adsorpy-1.2.2a4/images/AdsorPy_Covered_Surface.png +0 -0
- adsorpy-1.2.2a4/py.typed +0 -0
- adsorpy-1.2.2a4/sbom.cdx.json +0 -14476
- adsorpy-1.2.2a4/src/__init__.py +0 -0
- adsorpy-1.2.2a4/src/__main__.py +0 -8
- adsorpy-1.2.2a4/src/adsorpy/molecule_lib.py +0 -704
- adsorpy-1.2.2a4/tach.toml +0 -35
- adsorpy-1.2.2a4/tests/__init__.py +0 -0
- adsorpy-1.2.2a4/tests/rsa_test.py +0 -659
- adsorpy-1.2.2a4/tests/run_simulation_test.py +0 -392
- adsorpy-1.2.2a4/tests/test_data/config_test_hard.json +0 -56
- adsorpy-1.2.2a4/tests/test_data/config_test_periodic.json +0 -56
- adsorpy-1.2.2a4/tests/test_data/config_test_soft.json +0 -56
- adsorpy-1.2.2a4/tests/xyz_fuzzer_test.py +0 -134
- adsorpy-1.2.2a4/tox.toml +0 -44
- adsorpy-1.2.2a4/uv.lock +0 -3245
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/VdW_Radii.csv +0 -0
- {adsorpy-1.2.2a4 → adsorpy-1.3.0}/src/adsorpy/config.json +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: adsorpy
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: Random sequential adsorption (RSA) simulation, 2D lattice-based.
|
|
5
|
-
Project-URL: github, https://github.com/
|
|
5
|
+
Project-URL: github, https://github.com/JoosFWMaas/AdsorPy
|
|
6
6
|
Project-URL: Documentation, https://joostfwmaas.github.io/AdsorPy
|
|
7
7
|
Project-URL: Changelog, https://github.com/JoostFWMaas/AdsorPy/blob/main/CHANGELOG.md
|
|
8
8
|
Project-URL: homepage, https://pypi.org/project/adsorpy/
|
|
@@ -33,38 +33,109 @@ Classifier: Topic :: Scientific/Engineering :: Physics
|
|
|
33
33
|
Classifier: Topic :: Software Development
|
|
34
34
|
Classifier: Typing :: Typed
|
|
35
35
|
Requires-Python: >=3.10
|
|
36
|
+
Requires-Dist: beautifulsoup4>=4.10.0
|
|
37
|
+
Requires-Dist: defusedxml>=0.7.1
|
|
38
|
+
Requires-Dist: entrypoints>=0.2.3
|
|
39
|
+
Requires-Dist: enum34>=1.1.10
|
|
40
|
+
Requires-Dist: future>=1.0.0
|
|
41
|
+
Requires-Dist: html5lib>=1.1
|
|
42
|
+
Requires-Dist: ipaddress>=1.0.23
|
|
36
43
|
Requires-Dist: matplotlib>=3.10.9
|
|
37
|
-
Requires-Dist: numba>=0.
|
|
44
|
+
Requires-Dist: numba>=0.67.0
|
|
38
45
|
Requires-Dist: numpy>=2.2.6
|
|
46
|
+
Requires-Dist: ply>=3.11
|
|
47
|
+
Requires-Dist: pycparser>=3.0.0
|
|
48
|
+
Requires-Dist: pydantic-extra-types>=2.11.1
|
|
39
49
|
Requires-Dist: pydantic>=2.13.4
|
|
50
|
+
Requires-Dist: pyproject-hooks>=1.0.0
|
|
51
|
+
Requires-Dist: pyside6>=6.11.1
|
|
52
|
+
Requires-Dist: pywin32-ctypes>=0.2.3
|
|
40
53
|
Requires-Dist: rtree>=1.4.1
|
|
54
|
+
Requires-Dist: secretstorage>=3.5.0
|
|
41
55
|
Requires-Dist: shapely>=2.1.2
|
|
56
|
+
Requires-Dist: svg-py>=1.10.0
|
|
57
|
+
Requires-Dist: typing-extensions>=4.16.0
|
|
58
|
+
Requires-Dist: wcwidth>=0.7.0
|
|
59
|
+
Requires-Dist: webencodings>=0.5.1
|
|
60
|
+
Provides-Extra: dev-complete
|
|
61
|
+
Requires-Dist: basedpyright==1.39.9; extra == 'dev-complete'
|
|
62
|
+
Requires-Dist: build>=1.5.0; extra == 'dev-complete'
|
|
63
|
+
Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-complete'
|
|
64
|
+
Requires-Dist: codecov>=2.1.13; extra == 'dev-complete'
|
|
65
|
+
Requires-Dist: cryptography>=50.0.0; extra == 'dev-complete'
|
|
66
|
+
Requires-Dist: dask[distributed]>=2026.7.1; extra == 'dev-complete'
|
|
67
|
+
Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'dev-complete'
|
|
68
|
+
Requires-Dist: furo>=2025.12.19; extra == 'dev-complete'
|
|
69
|
+
Requires-Dist: gitpython>=3.1.59; extra == 'dev-complete'
|
|
70
|
+
Requires-Dist: h5py>=3.16.0; extra == 'dev-complete'
|
|
71
|
+
Requires-Dist: hypothesis>=6.165.5; extra == 'dev-complete'
|
|
72
|
+
Requires-Dist: mypy==2.3.0; extra == 'dev-complete'
|
|
73
|
+
Requires-Dist: nodeenv>=1.10.0; extra == 'dev-complete'
|
|
74
|
+
Requires-Dist: pandas>=2.3.3; extra == 'dev-complete'
|
|
75
|
+
Requires-Dist: pre-commit>=4.6.2; extra == 'dev-complete'
|
|
76
|
+
Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'dev-complete'
|
|
77
|
+
Requires-Dist: pytest-cov>=7.1.0; extra == 'dev-complete'
|
|
78
|
+
Requires-Dist: pytest-qt>=4.5.0; extra == 'dev-complete'
|
|
79
|
+
Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'dev-complete'
|
|
80
|
+
Requires-Dist: pytest>=9.1.1; extra == 'dev-complete'
|
|
81
|
+
Requires-Dist: pyvirtualdisplay>=1.3; (sys_platform == 'linux') and extra == 'dev-complete'
|
|
82
|
+
Requires-Dist: ruff==0.16.2; extra == 'dev-complete'
|
|
83
|
+
Requires-Dist: scipy>=1.15.3; extra == 'dev-complete'
|
|
84
|
+
Requires-Dist: seaborn>=0.13.2; extra == 'dev-complete'
|
|
85
|
+
Requires-Dist: slotscheck==0.20.1; extra == 'dev-complete'
|
|
86
|
+
Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == 'dev-complete'
|
|
87
|
+
Requires-Dist: sphinx-design>=0.6.1; extra == 'dev-complete'
|
|
88
|
+
Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'dev-complete'
|
|
89
|
+
Requires-Dist: sphinx>=8.1.3; extra == 'dev-complete'
|
|
90
|
+
Requires-Dist: tach==0.35.0; extra == 'dev-complete'
|
|
91
|
+
Requires-Dist: tox-uv>=1.36.0; extra == 'dev-complete'
|
|
92
|
+
Requires-Dist: tox>=4.59.0; extra == 'dev-complete'
|
|
93
|
+
Requires-Dist: twine>=6.0; extra == 'dev-complete'
|
|
94
|
+
Requires-Dist: uv>=0.12.3; extra == 'dev-complete'
|
|
42
95
|
Provides-Extra: dev-misc
|
|
43
96
|
Requires-Dist: build>=1.5.0; extra == 'dev-misc'
|
|
44
97
|
Requires-Dist: check-wheel-contents>=0.6.3; extra == 'dev-misc'
|
|
98
|
+
Requires-Dist: cryptography>=50.0.0; extra == 'dev-misc'
|
|
99
|
+
Requires-Dist: nodeenv>=1.10.0; extra == 'dev-misc'
|
|
100
|
+
Requires-Dist: pre-commit>=4.6.2; extra == 'dev-misc'
|
|
45
101
|
Requires-Dist: twine>=6.0; extra == 'dev-misc'
|
|
46
102
|
Provides-Extra: docs
|
|
47
103
|
Requires-Dist: furo>=2025.12.19; extra == 'docs'
|
|
48
|
-
Requires-Dist: sphinx-autodoc-typehints>=3.0; extra == 'docs'
|
|
49
|
-
Requires-Dist: sphinx-design>=0.6.
|
|
104
|
+
Requires-Dist: sphinx-autodoc-typehints>=3.0.1; extra == 'docs'
|
|
105
|
+
Requires-Dist: sphinx-design>=0.6.1; extra == 'docs'
|
|
50
106
|
Requires-Dist: sphinx-pyproject>=0.3.0; extra == 'docs'
|
|
51
|
-
Requires-Dist: sphinx>=8.
|
|
107
|
+
Requires-Dist: sphinx>=8.1.3; extra == 'docs'
|
|
52
108
|
Provides-Extra: envs
|
|
53
|
-
Requires-Dist: tox-
|
|
54
|
-
Requires-Dist: tox
|
|
55
|
-
Requires-Dist:
|
|
109
|
+
Requires-Dist: tox-uv>=1.36.0; extra == 'envs'
|
|
110
|
+
Requires-Dist: tox>=4.59.0; extra == 'envs'
|
|
111
|
+
Requires-Dist: uv>=0.12.3; extra == 'envs'
|
|
112
|
+
Provides-Extra: gui-deps
|
|
113
|
+
Requires-Dist: dask[distributed]>=2026.7.1; extra == 'gui-deps'
|
|
114
|
+
Requires-Dist: h5py>=3.16.0; extra == 'gui-deps'
|
|
115
|
+
Requires-Dist: pandas>=2.3.3; extra == 'gui-deps'
|
|
116
|
+
Requires-Dist: seaborn>=0.13.2; extra == 'gui-deps'
|
|
56
117
|
Provides-Extra: lint
|
|
57
|
-
Requires-Dist:
|
|
58
|
-
Requires-Dist:
|
|
59
|
-
Requires-Dist:
|
|
60
|
-
Requires-Dist:
|
|
61
|
-
Requires-Dist:
|
|
118
|
+
Requires-Dist: basedpyright==1.39.9; extra == 'lint'
|
|
119
|
+
Requires-Dist: gitpython>=3.1.59; extra == 'lint'
|
|
120
|
+
Requires-Dist: mypy==2.3.0; extra == 'lint'
|
|
121
|
+
Requires-Dist: pyside6-stubs==6.7.3.0; extra == 'lint'
|
|
122
|
+
Requires-Dist: ruff==0.16.2; extra == 'lint'
|
|
123
|
+
Requires-Dist: slotscheck==0.20.1; extra == 'lint'
|
|
124
|
+
Requires-Dist: tach==0.35.0; extra == 'lint'
|
|
62
125
|
Provides-Extra: test
|
|
63
126
|
Requires-Dist: codecov>=2.1.13; extra == 'test'
|
|
64
|
-
Requires-Dist:
|
|
127
|
+
Requires-Dist: dask[distributed]>=2026.7.1; extra == 'test'
|
|
128
|
+
Requires-Dist: easyprocess>=1.1; (sys_platform == 'linux') and extra == 'test'
|
|
129
|
+
Requires-Dist: h5py>=3.16.0; extra == 'test'
|
|
130
|
+
Requires-Dist: hypothesis>=6.165.5; extra == 'test'
|
|
131
|
+
Requires-Dist: pandas>=2.3.3; extra == 'test'
|
|
65
132
|
Requires-Dist: pytest-cov>=7.1.0; extra == 'test'
|
|
66
|
-
Requires-Dist: pytest>=
|
|
133
|
+
Requires-Dist: pytest-qt>=4.5.0; extra == 'test'
|
|
134
|
+
Requires-Dist: pytest-xvfb>=3.1.1; (sys_platform == 'linux') and extra == 'test'
|
|
135
|
+
Requires-Dist: pytest>=9.1.1; extra == 'test'
|
|
136
|
+
Requires-Dist: pyvirtualdisplay>=1.3; (sys_platform == 'linux') and extra == 'test'
|
|
67
137
|
Requires-Dist: scipy>=1.15.3; extra == 'test'
|
|
138
|
+
Requires-Dist: seaborn>=0.13.2; extra == 'test'
|
|
68
139
|
Description-Content-Type: text/markdown
|
|
69
140
|
|
|
70
141
|
# AdsorPy
|
|
@@ -91,8 +162,8 @@ gap size distribution.
|
|
|
91
162
|
|
|
92
163
|
## How to use
|
|
93
164
|
|
|
94
|
-
This package can be found on PyPI as [adsorpy](https://pypi.org/project/adsorpy/), so we recommend the following:
|
|
95
|
-
```bash
|
|
165
|
+
This package can be found on PyPI as [adsorpy](https://pypi.org/project/adsorpy/), so we recommend the following:
|
|
166
|
+
```bash
|
|
96
167
|
pip install adsorpy
|
|
97
168
|
```
|
|
98
169
|
|
|
@@ -136,5 +207,5 @@ The package also makes use of an optional config file that falls back on standar
|
|
|
136
207
|
|
|
137
208
|
## Openness and academic collaboration
|
|
138
209
|
|
|
139
|
-
The script was made public for the sake of openness and academic collaboration. Please let me know if you have questions about the script, or if you have discovered any issues/bugs.
|
|
210
|
+
The script was made public for the sake of openness and academic collaboration. Please let me know if you have questions about the script, or if you have discovered any issues/bugs.
|
|
140
211
|
At the end of this file, I will place a list of papers that make use of this work. Feel free to contact me if you want your work to be added to the list as well.
|
|
@@ -22,8 +22,8 @@ gap size distribution.
|
|
|
22
22
|
|
|
23
23
|
## How to use
|
|
24
24
|
|
|
25
|
-
This package can be found on PyPI as [adsorpy](https://pypi.org/project/adsorpy/), so we recommend the following:
|
|
26
|
-
```bash
|
|
25
|
+
This package can be found on PyPI as [adsorpy](https://pypi.org/project/adsorpy/), so we recommend the following:
|
|
26
|
+
```bash
|
|
27
27
|
pip install adsorpy
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -67,5 +67,5 @@ The package also makes use of an optional config file that falls back on standar
|
|
|
67
67
|
|
|
68
68
|
## Openness and academic collaboration
|
|
69
69
|
|
|
70
|
-
The script was made public for the sake of openness and academic collaboration. Please let me know if you have questions about the script, or if you have discovered any issues/bugs.
|
|
70
|
+
The script was made public for the sake of openness and academic collaboration. Please let me know if you have questions about the script, or if you have discovered any issues/bugs.
|
|
71
71
|
At the end of this file, I will place a list of papers that make use of this work. Feel free to contact me if you want your work to be added to the list as well.
|
|
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "adsorpy"
|
|
7
7
|
#dynamic = ["version"] # The Python guide says that this will use the Git tag to fill it in.
|
|
8
|
-
version = "1.
|
|
8
|
+
version = "1.3.0" # Edit manually.
|
|
9
9
|
description = "Random sequential adsorption (RSA) simulation, 2D lattice-based."
|
|
10
10
|
authors = [{ name = "J.F.W. Maas", email = "j.f.w.maas@tue.nl" }]
|
|
11
11
|
readme = "README.md"
|
|
@@ -17,8 +17,8 @@ classifiers = [
|
|
|
17
17
|
"Development Status :: 5 - Production/Stable",
|
|
18
18
|
"License :: OSI Approved :: MIT License",
|
|
19
19
|
"Typing :: Typed",
|
|
20
|
-
"Natural Language :: English",
|
|
21
20
|
# Intended users of project:
|
|
21
|
+
"Natural Language :: English",
|
|
22
22
|
"Intended Audience :: Developers",
|
|
23
23
|
"Intended Audience :: Science/Research",
|
|
24
24
|
"Topic :: Software Development",
|
|
@@ -58,52 +58,86 @@ keywords = [
|
|
|
58
58
|
|
|
59
59
|
dependencies = [
|
|
60
60
|
"numpy>=2.2.6",
|
|
61
|
-
|
|
62
|
-
# "numpy>=2.4.4; python_version>='3.11'",
|
|
63
|
-
"numba>=0.65.1",
|
|
61
|
+
"numba>=0.67.0",
|
|
64
62
|
"matplotlib>=3.10.9",
|
|
65
63
|
"shapely>=2.1.2",
|
|
66
64
|
"pydantic>=2.13.4",
|
|
65
|
+
"pydantic-extra-types>=2.11.1",
|
|
67
66
|
"rtree>=1.4.1",
|
|
67
|
+
"svg-py>=1.10.0",
|
|
68
|
+
"defusedxml>=0.7.1",
|
|
69
|
+
"PySide6>=6.11.1",
|
|
70
|
+
"typing-extensions>=4.16.0",
|
|
71
|
+
# Everything after this line is included so uv also runs with the lowest dependency resolution.
|
|
72
|
+
"html5lib>=1.1",
|
|
73
|
+
"wcwidth>=0.7.0",
|
|
74
|
+
"webencodings>=0.5.1",
|
|
75
|
+
"pyproject-hooks>=1.0.0",
|
|
76
|
+
"beautifulsoup4>=4.10.0",
|
|
77
|
+
"entrypoints>=0.2.3",
|
|
78
|
+
"future>=1.0.0",
|
|
79
|
+
"secretstorage>=3.5.0",
|
|
80
|
+
"pywin32-ctypes>=0.2.3",
|
|
81
|
+
"pycparser>=3.0.0",
|
|
82
|
+
"enum34>=1.1.10",
|
|
83
|
+
"ipaddress>=1.0.23",
|
|
84
|
+
"ply>=3.11",
|
|
68
85
|
]
|
|
69
86
|
|
|
70
87
|
[project.optional-dependencies]
|
|
71
88
|
test = [
|
|
72
|
-
"pytest>=9.
|
|
89
|
+
"pytest>=9.1.1",
|
|
73
90
|
"pytest-cov>=7.1.0",
|
|
74
|
-
"hypothesis>=6.
|
|
91
|
+
"hypothesis>=6.165.5",
|
|
75
92
|
"scipy>=1.15.3",
|
|
76
|
-
# "scipy==1.15.3; python_version=='3.10'",
|
|
77
|
-
# "scipy>=1.17.1; python_version>='3.11'",
|
|
78
93
|
"codecov>=2.1.13",
|
|
94
|
+
"pytest-qt>=4.5.0",
|
|
95
|
+
"adsorpy[gui-deps]",
|
|
96
|
+
"pytest-xvfb>=3.1.1; sys_platform == 'linux'",
|
|
97
|
+
"pyvirtualdisplay>=1.3; sys_platform == 'linux'",
|
|
98
|
+
"easyprocess>=1.1; sys_platform == 'linux'",
|
|
79
99
|
]
|
|
80
100
|
lint = [
|
|
81
|
-
"mypy
|
|
82
|
-
"ruff
|
|
83
|
-
"
|
|
84
|
-
"tach
|
|
85
|
-
"slotscheck
|
|
101
|
+
"mypy==2.3.0",
|
|
102
|
+
"ruff==0.16.2",
|
|
103
|
+
"basedpyright==1.39.9",
|
|
104
|
+
"tach==0.35.0",
|
|
105
|
+
"slotscheck==0.20.1",
|
|
106
|
+
"pyside6-stubs==6.7.3.0",
|
|
107
|
+
"gitpython>=3.1.59",
|
|
86
108
|
]
|
|
87
109
|
docs = [
|
|
88
|
-
"sphinx>=8.
|
|
110
|
+
"sphinx>=8.1.3",
|
|
89
111
|
"furo>=2025.12.19",
|
|
90
|
-
"sphinx_design>=0.6.
|
|
91
|
-
"sphinx-autodoc-typehints>=3.0",
|
|
112
|
+
"sphinx_design>=0.6.1",
|
|
113
|
+
"sphinx-autodoc-typehints>=3.0.1",
|
|
92
114
|
"sphinx-pyproject>=0.3.0",
|
|
93
115
|
]
|
|
94
116
|
envs = [
|
|
95
|
-
"tox>=4.
|
|
96
|
-
"tox-
|
|
97
|
-
"
|
|
117
|
+
"tox>=4.59.0",
|
|
118
|
+
"tox-uv>=1.36.0",
|
|
119
|
+
"uv>=0.12.3",
|
|
98
120
|
]
|
|
99
121
|
dev-misc = [
|
|
100
122
|
"build>=1.5.0",
|
|
101
123
|
"twine>=6.0",
|
|
124
|
+
"cryptography>=50.0.0",
|
|
102
125
|
"check-wheel-contents>=0.6.3",
|
|
126
|
+
"pre-commit>=4.6.2",
|
|
127
|
+
"nodeenv>=1.10.0",
|
|
128
|
+
]
|
|
129
|
+
gui-deps = [
|
|
130
|
+
"pandas>=2.3.3",
|
|
131
|
+
"h5py>=3.16.0",
|
|
132
|
+
"seaborn>=0.13.2",
|
|
133
|
+
"dask[distributed]>=2026.7.1",
|
|
134
|
+
]
|
|
135
|
+
dev-complete = [
|
|
136
|
+
"adsorpy[test,lint,docs,envs,dev-misc,gui-deps]"
|
|
103
137
|
]
|
|
104
138
|
|
|
105
139
|
[project.urls]
|
|
106
|
-
github = "https://github.com/
|
|
140
|
+
github = "https://github.com/JoosFWMaas/AdsorPy"
|
|
107
141
|
Documentation = "https://joostfwmaas.github.io/AdsorPy"
|
|
108
142
|
Changelog = "https://github.com/JoostFWMaas/AdsorPy/blob/main/CHANGELOG.md"
|
|
109
143
|
homepage = "https://pypi.org/project/adsorpy/"
|
|
@@ -114,25 +148,26 @@ download = "https://pypi.org/project/adsorpy/#files"
|
|
|
114
148
|
"adsorpy" = ["py.typed"]
|
|
115
149
|
|
|
116
150
|
[tool.hatch.build]
|
|
117
|
-
#include = ["src/**"]
|
|
118
|
-
#only-packages = true
|
|
119
151
|
deterministic = true
|
|
120
152
|
|
|
121
153
|
[tool.hatch.build.targets.wheel]
|
|
122
154
|
sbom-files = ["sbom.cdx.json"]
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
155
|
+
packages = ["src/adsorpy"]
|
|
156
|
+
|
|
157
|
+
[tool.hatch.build.targets.sdist]
|
|
158
|
+
include = [
|
|
159
|
+
"/src/adsorpy",
|
|
160
|
+
"/pyproject.toml",
|
|
161
|
+
"README.md",
|
|
162
|
+
"/LICENSE",
|
|
163
|
+
"sbom.cdx.json",
|
|
127
164
|
]
|
|
128
165
|
|
|
129
|
-
[tool.hatch.envs.default]
|
|
130
|
-
type = "pip-compile"
|
|
131
|
-
|
|
132
166
|
[tool.pytest.ini_options]
|
|
133
167
|
testpaths = ["tests"]
|
|
134
|
-
pythonpath = ["
|
|
135
|
-
addopts = ["--cov=
|
|
168
|
+
pythonpath = ["."]
|
|
169
|
+
addopts = ["--cov=adsorpy", "--cov-report=term", "--cov-report=html", "--strict-markers", "--import-mode=importlib"]
|
|
170
|
+
qt_api = "pyside6"
|
|
136
171
|
|
|
137
172
|
[tool.coverage.run]
|
|
138
173
|
omit = [
|
|
@@ -147,26 +182,40 @@ omit = [
|
|
|
147
182
|
]
|
|
148
183
|
|
|
149
184
|
[tool.coverage.report]
|
|
185
|
+
#fail_under = 20
|
|
150
186
|
exclude_also = [
|
|
151
187
|
"if __name__ == .__main__.:",
|
|
152
188
|
"def main()",
|
|
153
|
-
"if False:",
|
|
189
|
+
# "if False:",
|
|
154
190
|
"raise NotImplementedError",
|
|
155
191
|
"if TYPE_CHECKING",
|
|
156
|
-
"def plot_
|
|
157
|
-
"if print_
|
|
158
|
-
"if plot_
|
|
192
|
+
"def plot_",
|
|
193
|
+
"if print_",
|
|
194
|
+
"if plot_",
|
|
159
195
|
"while temp_results_folder.is_dir()", # Checks for collision in saving folders. Nothing is saved for tests.
|
|
160
196
|
"if self.flux_flag:", # Experimental feature, not yet usable.
|
|
161
|
-
"_run_flux_
|
|
197
|
+
"_run_flux_", # See above.
|
|
162
198
|
"if not self.simple_shape_flag", # Idem ditto.
|
|
163
|
-
"if version_info", # Is tested with Tox (between instances of Pytest). False negative.
|
|
199
|
+
"if (sys\\.)?version_info", # Is tested with Tox (between instances of Pytest). False negative.
|
|
164
200
|
"from datetime import", # Used for compatibility between versions. Only tests for one version at a time.
|
|
165
201
|
"@njit", # Compiled code is not seen by coverage. This code is tested with Hypothesis though. False negative.
|
|
202
|
+
"svg",
|
|
203
|
+
"css",
|
|
204
|
+
"def show_",
|
|
205
|
+
"def save_",
|
|
206
|
+
"from typing",
|
|
207
|
+
"if prlongoutput_flag",
|
|
208
|
+
"batch_simulation",
|
|
209
|
+
]
|
|
210
|
+
|
|
211
|
+
[tool.coverage.paths]
|
|
212
|
+
source = [
|
|
213
|
+
"src/", # Local path
|
|
214
|
+
".tox/*lib//site-packages/", # Tox path
|
|
166
215
|
]
|
|
167
216
|
|
|
168
217
|
[tool.mypy]
|
|
169
|
-
mypy_path = ["
|
|
218
|
+
mypy_path = ["."]
|
|
170
219
|
ignore_missing_imports = true
|
|
171
220
|
strict = true
|
|
172
221
|
disallow_any_explicit = true
|
|
@@ -179,6 +228,7 @@ plugins = ["pydantic.mypy"]
|
|
|
179
228
|
init_forbid_extra = true
|
|
180
229
|
init_typed = true
|
|
181
230
|
warn_required_dynamic_aliases = true
|
|
231
|
+
disallow_subclassing_any = false
|
|
182
232
|
|
|
183
233
|
[tool.flake8]
|
|
184
234
|
max-line-length = 120
|
|
@@ -211,9 +261,13 @@ known_local_folder = ["molcule_lib", "RSA_Calculator", "rsa_config"]
|
|
|
211
261
|
[tool.black]
|
|
212
262
|
line-length = 88
|
|
213
263
|
|
|
264
|
+
[tool.uv]
|
|
265
|
+
required-version = "0.12.3"
|
|
266
|
+
|
|
214
267
|
[tool.ruff]
|
|
215
268
|
line-length = 120
|
|
216
269
|
include = ["pyproject.toml", "src/**/*.py", "tests/**/*.py"]
|
|
270
|
+
src = ["src"]
|
|
217
271
|
|
|
218
272
|
[tool.ruff.format]
|
|
219
273
|
quote-style = "double"
|
|
@@ -246,22 +300,21 @@ ignore = [
|
|
|
246
300
|
|
|
247
301
|
[tool.ruff.lint.per-file-ignores]
|
|
248
302
|
"__init__.py" = ["D104"] # Missing docstring in public package. Not needed, package is empty.
|
|
249
|
-
"
|
|
303
|
+
"tests/*" = ["S101", "TC", "SLF001"] # Assert should not be used in production code! But this is test code, so here it is expected.
|
|
250
304
|
|
|
251
305
|
[tool.ruff.lint.flake8-type-checking]
|
|
252
306
|
runtime-evaluated-decorators = ["pydantic.dataclasses.dataclass"]
|
|
253
307
|
|
|
254
|
-
[tool.
|
|
308
|
+
[tool.basedpyright]
|
|
255
309
|
include = ["src", "tests"]
|
|
256
|
-
|
|
257
|
-
typeCheckingMode = "strict"
|
|
258
|
-
|
|
259
|
-
useLibraryCodeForTypes = true
|
|
310
|
+
extraPaths = ["src"]
|
|
311
|
+
#typeCheckingMode = "strict" # Comment when using basedpyright.
|
|
312
|
+
#useLibraryCodeForTypes = true
|
|
260
313
|
|
|
261
314
|
# Avoid penalising third-party libraries.
|
|
262
315
|
reportMissingTypeStubs = "none"
|
|
263
316
|
|
|
264
|
-
# Suppress "partially unknown" noise from deps like numpy, shapely, matplotlib, etc
|
|
317
|
+
# Suppress "partially unknown" noise from deps like numpy, shapely, matplotlib, etc...
|
|
265
318
|
reportUnknownMemberType = "none"
|
|
266
319
|
reportUnknownVariableType = "none"
|
|
267
320
|
reportUnknownParameterType = "none"
|
|
@@ -275,11 +328,10 @@ reportPrivateUsage = "warning"
|
|
|
275
328
|
reportUnnecessaryTypeIgnoreComment = "warning"
|
|
276
329
|
reportUnnecessaryComparison = "warning" # These are usually included to prevent the user from breaking things.
|
|
277
330
|
|
|
331
|
+
# Basedpyright options, comment these out when falling back on pyright:
|
|
332
|
+
typeCheckingMode = "strict" # Comment when using pyright. Options are: "strict", "recommended", "all".
|
|
333
|
+
failOnWarnings = false
|
|
334
|
+
executionEnvironments = [{ root = "tests", reportPrivateUsage = "none", reportUnnecessaryTypeIgnoreComment = "none" }]
|
|
335
|
+
|
|
278
336
|
[tool.slotscheck]
|
|
279
337
|
strict-imports = true
|
|
280
|
-
include-modules = """
|
|
281
|
-
(
|
|
282
|
-
src
|
|
283
|
-
# |tests
|
|
284
|
-
)
|
|
285
|
-
"""
|