klib 1.3.2__tar.gz → 1.4.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.
Files changed (49) hide show
  1. {klib-1.3.2 → klib-1.4.0}/.github/workflows/codeql-analysis.yml +4 -4
  2. klib-1.4.0/.github/workflows/pre-commit.yaml +19 -0
  3. klib-1.4.0/.github/workflows/pythonpackage.yml +74 -0
  4. {klib-1.3.2 → klib-1.4.0}/.gitignore +1 -1
  5. {klib-1.3.2 → klib-1.4.0}/.pre-commit-config.yaml +4 -12
  6. {klib-1.3.2 → klib-1.4.0}/Makefile +1 -1
  7. {klib-1.3.2 → klib-1.4.0}/PKG-INFO +9 -9
  8. {klib-1.3.2 → klib-1.4.0}/examples/klib-plots.ipynb +479 -484
  9. klib-1.4.0/examples/klib_data_cleaning.ipynb +796 -0
  10. {klib-1.3.2 → klib-1.4.0}/pyproject.toml +12 -20
  11. {klib-1.3.2 → klib-1.4.0}/src/klib/_version.py +1 -1
  12. {klib-1.3.2 → klib-1.4.0}/src/klib/clean.py +19 -9
  13. {klib-1.3.2 → klib-1.4.0}/src/klib/describe.py +10 -10
  14. {klib-1.3.2 → klib-1.4.0}/src/klib/utils.py +4 -4
  15. {klib-1.3.2 → klib-1.4.0}/tests/test_clean.py +44 -47
  16. klib-1.4.0/uv.lock +2546 -0
  17. klib-1.3.2/.github/workflows/pythonpackage.yml +0 -40
  18. klib-1.3.2/examples/klib_data_cleaning.ipynb +0 -805
  19. klib-1.3.2/uv.lock +0 -1897
  20. {klib-1.3.2 → klib-1.4.0}/.github/FUNDING.yml +0 -0
  21. {klib-1.3.2 → klib-1.4.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  22. {klib-1.3.2 → klib-1.4.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  23. {klib-1.3.2 → klib-1.4.0}/.github/dependabot.yml +0 -0
  24. {klib-1.3.2 → klib-1.4.0}/CODE_OF_CONDUCT.md +0 -0
  25. {klib-1.3.2 → klib-1.4.0}/LICENSE +0 -0
  26. {klib-1.3.2 → klib-1.4.0}/MANIFEST.in +0 -0
  27. {klib-1.3.2 → klib-1.4.0}/README.md +0 -0
  28. {klib-1.3.2 → klib-1.4.0}/examples/NFL_DATASET.csv +0 -0
  29. {klib-1.3.2 → klib-1.4.0}/examples/README.md +0 -0
  30. {klib-1.3.2 → klib-1.4.0}/examples/datasets/.gitignore +0 -0
  31. {klib-1.3.2 → klib-1.4.0}/examples/images/example_cat_plot.png +0 -0
  32. {klib-1.3.2 → klib-1.4.0}/examples/images/example_corr_interactive_plot.png +0 -0
  33. {klib-1.3.2 → klib-1.4.0}/examples/images/example_corr_plot.png +0 -0
  34. {klib-1.3.2 → klib-1.4.0}/examples/images/example_dist_plot.png +0 -0
  35. {klib-1.3.2 → klib-1.4.0}/examples/images/example_klib_corr_mat.png +0 -0
  36. {klib-1.3.2 → klib-1.4.0}/examples/images/example_klib_data_cleaning_dtypes.png +0 -0
  37. {klib-1.3.2 → klib-1.4.0}/examples/images/example_klib_data_cleaning_report.png +0 -0
  38. {klib-1.3.2 → klib-1.4.0}/examples/images/example_klib_pool_duplicate_subsets1.png +0 -0
  39. {klib-1.3.2 → klib-1.4.0}/examples/images/example_klib_pool_duplicate_subsets2.png +0 -0
  40. {klib-1.3.2 → klib-1.4.0}/examples/images/example_klib_pool_duplicate_subsets3.png +0 -0
  41. {klib-1.3.2 → klib-1.4.0}/examples/images/example_mv_plot.png +0 -0
  42. {klib-1.3.2 → klib-1.4.0}/examples/images/example_target_corr_plot.png +0 -0
  43. {klib-1.3.2 → klib-1.4.0}/examples/images/header.png +0 -0
  44. {klib-1.3.2 → klib-1.4.0}/src/klib/__init__.py +0 -0
  45. {klib-1.3.2 → klib-1.4.0}/src/klib/scripts/__init__.py +0 -0
  46. {klib-1.3.2 → klib-1.4.0}/src/klib/scripts/performance.py +0 -0
  47. {klib-1.3.2 → klib-1.4.0}/tests/__init__.py +0 -0
  48. {klib-1.3.2 → klib-1.4.0}/tests/test_describe.py +0 -0
  49. {klib-1.3.2 → klib-1.4.0}/tests/test_util.py +0 -0
@@ -16,7 +16,7 @@ jobs:
16
16
 
17
17
  steps:
18
18
  - name: Checkout repository
19
- uses: actions/checkout@v4
19
+ uses: actions/checkout@v5
20
20
  with:
21
21
  # We must fetch at least the immediate parents so that if this is
22
22
  # a pull request then we can checkout the head.
@@ -24,7 +24,7 @@ jobs:
24
24
 
25
25
  # Initializes the CodeQL tools for scanning.
26
26
  - name: Initialize CodeQL
27
- uses: github/codeql-action/init@v3
27
+ uses: github/codeql-action/init@v4
28
28
  # Override language selection by uncommenting this and choosing your languages
29
29
  # with:
30
30
  # languages: go, javascript, csharp, python, cpp, java
@@ -32,7 +32,7 @@ jobs:
32
32
  # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
33
33
  # If this step fails, then you should remove it and run the build manually (see below)
34
34
  - name: Autobuild
35
- uses: github/codeql-action/autobuild@v3
35
+ uses: github/codeql-action/autobuild@v4
36
36
 
37
37
  # ℹ️ Command-line programs to run using the OS shell.
38
38
  # 📚 https://git.io/JvXDl
@@ -46,4 +46,4 @@ jobs:
46
46
  # make release
47
47
 
48
48
  - name: Perform CodeQL Analysis
49
- uses: github/codeql-action/analyze@v3
49
+ uses: github/codeql-action/analyze@v4
@@ -0,0 +1,19 @@
1
+ name: pre-commit
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ pre-commit:
11
+ runs-on: ubuntu-latest
12
+ if: ${{ github.event.pull_request.draft == false }}
13
+ steps:
14
+ - uses: actions/checkout@v5
15
+ - name: Setup python
16
+ uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.12"
19
+ - uses: pre-commit/action@v3.0.1
@@ -0,0 +1,74 @@
1
+ name: Ruff 🐍 Pytest ´
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+ release:
9
+ types: [published]
10
+
11
+ jobs:
12
+ build:
13
+ strategy:
14
+ matrix:
15
+ python-version: ["3.10", "3.11", "3.12", "3.13"]
16
+ platform: [ubuntu-latest, macos-latest, windows-latest]
17
+
18
+ runs-on: ${{ matrix.platform }}
19
+ steps:
20
+ - uses: actions/checkout@v5
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+
26
+ - name: Install uv
27
+ uses: astral-sh/setup-uv@v7
28
+ with:
29
+ version: "latest"
30
+
31
+ - name: Install dependencies (Windows)
32
+ if: runner.os == 'Windows'
33
+ run: |
34
+ uv venv --python ${{ matrix.python-version }}
35
+ .\.venv\Scripts\activate
36
+ uv sync --frozen --all-extras
37
+ shell: cmd
38
+
39
+ - name: Install dependencies (Unix)
40
+ if: runner.os != 'Windows'
41
+ run: make create-venv
42
+
43
+ - name: Test with pytest and generate coverage report
44
+ run: |
45
+ uv run pytest
46
+
47
+ - name: Upload coverage to Codecov
48
+ uses: codecov/codecov-action@v5
49
+
50
+ publish:
51
+ needs: build
52
+ if: github.event_name == 'release' && github.event.action == 'published'
53
+ runs-on: ubuntu-latest
54
+ permissions:
55
+ id-token: write
56
+ contents: read
57
+ steps:
58
+ - uses: actions/checkout@v5
59
+
60
+ - name: Install uv
61
+ uses: astral-sh/setup-uv@v7
62
+ with:
63
+ version: "latest"
64
+
65
+ - name: Set up Python
66
+ uses: actions/setup-python@v5
67
+ with:
68
+ python-version: "3.12"
69
+
70
+ - name: Build package
71
+ run: uv build
72
+
73
+ - name: Publish package
74
+ run: uv publish
@@ -1,4 +1,4 @@
1
- # Byte-compiled / optimized / DLL files
1
+ # Byte-compiled / optimized / DLL files
2
2
  __pycache__/
3
3
  *.py[cod]
4
4
  *$py.class
@@ -16,25 +16,17 @@ repos:
16
16
  - id: detect-private-key
17
17
  description: Checks for the existence of private keys.
18
18
  - id: check-yaml
19
- language_version: python3.12
20
19
  - id: check-json
21
- language_version: python3.12
22
20
  - id: trailing-whitespace
23
- language_version: python3.12
24
21
  - id: end-of-file-fixer
25
- language_version: python3.12
26
22
  - id: check-merge-conflict
27
- language_version: python3.12
28
23
  - id: check-executables-have-shebangs
29
24
  - id: mixed-line-ending
30
- language_version: python3.12
31
25
  - id: debug-statements
32
- language_version: python3.12
33
26
  - id: name-tests-test
34
- language_version: python3.12
35
27
  args: ["--pytest-test-first"]
36
28
  - repo: https://github.com/astral-sh/ruff-pre-commit
37
- rev: v0.7.0
29
+ rev: v0.9.2
38
30
  hooks:
39
31
  - id: ruff
40
32
  args: [--fix, --exit-non-zero-on-fix, --show-fixes]
@@ -45,11 +37,11 @@ repos:
45
37
  hooks:
46
38
  - id: add-trailing-comma
47
39
  - repo: https://github.com/asottile/pyupgrade
48
- rev: v3.18.0
40
+ rev: v3.19.1
49
41
  hooks:
50
42
  - id: pyupgrade
51
- args: [--py312-plus]
43
+ args: [--py313-plus]
52
44
  - repo: https://github.com/gitleaks/gitleaks
53
- rev: v8.21.1
45
+ rev: v8.22.1
54
46
  hooks:
55
47
  - id: gitleaks
@@ -1,4 +1,4 @@
1
- PYTHON_VERSION = 3.12
1
+ PYTHON_VERSION = 3.13
2
2
 
3
3
  .PHONY: lock-dependencies
4
4
  lock-dependencies: ## Lock dependencies based on pyproject.toml
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: klib
3
- Version: 1.3.2
3
+ Version: 1.4.0
4
4
  Summary: Common data preprocessing and visualisation functions.
5
5
  Author-email: Andreas Kanz <andreas@akanz.de>
6
6
  License-Expression: MIT
@@ -8,15 +8,15 @@ License-File: LICENSE
8
8
  Classifier: License :: OSI Approved :: MIT License
9
9
  Classifier: Operating System :: OS Independent
10
10
  Classifier: Programming Language :: Python :: 3
11
- Requires-Python: >=3.9
11
+ Requires-Python: >=3.10
12
12
  Requires-Dist: jinja2>=3.1.0
13
- Requires-Dist: matplotlib>=3.6.0
14
- Requires-Dist: numpy>=1.26.0
15
- Requires-Dist: pandas<3.0,>=1.4
16
- Requires-Dist: plotly>=5.11.0
17
- Requires-Dist: scipy>=1.10.0
13
+ Requires-Dist: matplotlib>=3.9.0
14
+ Requires-Dist: numpy>=2.0.0
15
+ Requires-Dist: pandas<4.0,>=1.4
16
+ Requires-Dist: plotly>=5.24.0
17
+ Requires-Dist: scipy>=1.14.0
18
18
  Requires-Dist: screeninfo>=0.8.1
19
- Requires-Dist: seaborn>=0.12.0
19
+ Requires-Dist: seaborn>=0.13.0
20
20
  Description-Content-Type: text/markdown
21
21
 
22
22
  <p align="center"><img src="https://raw.githubusercontent.com/akanz1/klib/main/examples/images/header.png" alt="klib Header" width="859" height="304"></p>