Skip to content

Commit 3a7d72e

Browse files
authored
Rafactor/reofrmat all modules (#112)
chore(docs): fix examples and formatting across modules, update doctest and CI hooks - Fixed outdated examples and docstrings in multiple modules (e.g., descriptors, sensitivity, tools) - Enabled `nbval` testing for the `docs/` directory and adjusted test hooks accordingly - Added Rhine example and updated plotting behavior for conditional checks - Addressed minor validation issues (e.g., `alpha` and `scale` checks) - Updated pre-commit hook configuration and excluded notebooks from `detect-secrets`
1 parent 6e3c157 commit 3a7d72e

38 files changed

+29972
-3208
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
args: [ --markdown-linebreak-ext=md ]
1616
- id: check-added-large-files
1717
name: "[file - check] large file"
18-
args: [ --maxkb=2000 ]
18+
args: [ --maxkb=3000 ]
1919
- id: check-docstring-first
2020
name: "[py - check] docstring first"
2121
files: /examples
@@ -119,6 +119,7 @@ repos:
119119
rev: v1.5.0
120120
hooks:
121121
- id: detect-secrets
122+
exclude: \.ipynb$
122123
- repo: https://github.com/bridgecrewio/checkov
123124
rev: 3.2.416
124125
hooks:
@@ -157,7 +158,7 @@ repos:
157158
hooks:
158159
- id: notebook-check
159160
name: nbval
160-
entry: pytest --nbval-lax
161+
entry: pytest --nbval-lax docs
161162
language: system
162163
files: \.ipynb$
163164
always_run: true
@@ -166,7 +167,6 @@ repos:
166167
hooks:
167168
- id: doctest
168169
name: doctest
169-
entry: python -c "import matplotlib; matplotlib.use('Agg'); import pytest; pytest.main(['--doctest-modules'])"
170+
entry: python -c "import matplotlib; matplotlib.use('Agg'); import pytest; import sys; sys.exit(pytest.main(['--doctest-modules', 'src']))"
170171
language: system
171-
files: ^src/statista/.*\.py$
172172
always_run: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ This project is licensed under the GPL-3.0 License - see the LICENSE file for de
128128
If you use Statista in your research, please cite it as:
129129

130130
```
131-
Farrag, M. (2023). Statista: A Python package for statistical analysis, extreme value analysis, and sensitivity analysis.
131+
Farrag, M. (2023). Statista: A Python package for statistical analysis, extreme value analysis, and sensitivity analysis.
132132
https://github.com/Serapieum-of-alex/statista
133133
```
134134

File renamed without changes.
File renamed without changes.
26.9 KB
Loading
15.7 KB
Loading
17.7 KB
Loading

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ This project is licensed under the GPL-3.0 License - see the LICENSE file for de
128128
If you use Statista in your research, please cite it as:
129129

130130
```
131-
Farrag, M. (2023). Statista: A Python package for statistical analysis, extreme value analysis, and sensitivity analysis.
131+
Farrag, M. (2023). Statista: A Python package for statistical analysis, extreme value analysis, and sensitivity analysis.
132132
https://github.com/Serapieum-of-alex/statista
133133
```
134134

docs/notebook/extreme-value-analysis/extreme-value-analysis.ipynb

Lines changed: 1009 additions & 1009 deletions
Large diffs are not rendered by default.

docs/notebook/extreme-value-analysis/rhine_discharge_analysis.ipynb

Lines changed: 767 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)