klib 1.3.2__tar.gz → 1.4.1__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.
- {klib-1.3.2 → klib-1.4.1}/.github/workflows/codeql-analysis.yml +4 -4
- klib-1.4.1/.github/workflows/pre-commit.yaml +19 -0
- klib-1.4.1/.github/workflows/pythonpackage.yml +77 -0
- {klib-1.3.2 → klib-1.4.1}/.gitignore +1 -1
- {klib-1.3.2 → klib-1.4.1}/.pre-commit-config.yaml +4 -12
- {klib-1.3.2 → klib-1.4.1}/Makefile +1 -1
- {klib-1.3.2 → klib-1.4.1}/PKG-INFO +14 -9
- {klib-1.3.2 → klib-1.4.1}/examples/klib-plots.ipynb +479 -484
- klib-1.4.1/examples/klib_data_cleaning.ipynb +796 -0
- {klib-1.3.2 → klib-1.4.1}/pyproject.toml +19 -23
- {klib-1.3.2 → klib-1.4.1}/src/klib/_version.py +1 -1
- {klib-1.3.2 → klib-1.4.1}/src/klib/clean.py +27 -14
- {klib-1.3.2 → klib-1.4.1}/src/klib/describe.py +70 -45
- {klib-1.3.2 → klib-1.4.1}/src/klib/utils.py +5 -5
- klib-1.4.1/tests/conftest.py +5 -0
- {klib-1.3.2 → klib-1.4.1}/tests/test_clean.py +26 -31
- {klib-1.3.2 → klib-1.4.1}/tests/test_describe.py +79 -0
- klib-1.4.1/uv.lock +2907 -0
- klib-1.3.2/.github/workflows/pythonpackage.yml +0 -40
- klib-1.3.2/examples/klib_data_cleaning.ipynb +0 -805
- klib-1.3.2/uv.lock +0 -1897
- {klib-1.3.2 → klib-1.4.1}/.github/FUNDING.yml +0 -0
- {klib-1.3.2 → klib-1.4.1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {klib-1.3.2 → klib-1.4.1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {klib-1.3.2 → klib-1.4.1}/.github/dependabot.yml +0 -0
- {klib-1.3.2 → klib-1.4.1}/CODE_OF_CONDUCT.md +0 -0
- {klib-1.3.2 → klib-1.4.1}/LICENSE +0 -0
- {klib-1.3.2 → klib-1.4.1}/MANIFEST.in +0 -0
- {klib-1.3.2 → klib-1.4.1}/README.md +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/NFL_DATASET.csv +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/README.md +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/datasets/.gitignore +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_cat_plot.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_corr_interactive_plot.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_corr_plot.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_dist_plot.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_klib_corr_mat.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_klib_data_cleaning_dtypes.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_klib_data_cleaning_report.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_klib_pool_duplicate_subsets1.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_klib_pool_duplicate_subsets2.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_klib_pool_duplicate_subsets3.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_mv_plot.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/example_target_corr_plot.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/examples/images/header.png +0 -0
- {klib-1.3.2 → klib-1.4.1}/src/klib/__init__.py +0 -0
- {klib-1.3.2 → klib-1.4.1}/src/klib/scripts/__init__.py +0 -0
- {klib-1.3.2 → klib-1.4.1}/src/klib/scripts/performance.py +0 -0
- {klib-1.3.2 → klib-1.4.1}/tests/__init__.py +0 -0
- {klib-1.3.2 → klib-1.4.1}/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@
|
|
19
|
+
uses: actions/checkout@v6
|
|
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@
|
|
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@
|
|
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@
|
|
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@v6
|
|
15
|
+
- name: Setup python
|
|
16
|
+
uses: actions/setup-python@v6
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.12"
|
|
19
|
+
- uses: pre-commit/action@v3.0.1
|
|
@@ -0,0 +1,77 @@
|
|
|
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", "3.14"]
|
|
16
|
+
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
17
|
+
|
|
18
|
+
runs-on: ${{ matrix.platform }}
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v6
|
|
21
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
22
|
+
uses: actions/setup-python@v6
|
|
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: |
|
|
42
|
+
uv venv --python ${{ matrix.python-version }}
|
|
43
|
+
. .venv/bin/activate
|
|
44
|
+
uv sync --frozen --all-extras
|
|
45
|
+
|
|
46
|
+
- name: Test with pytest and generate coverage report
|
|
47
|
+
run: |
|
|
48
|
+
uv run pytest
|
|
49
|
+
|
|
50
|
+
- name: Upload coverage to Codecov
|
|
51
|
+
uses: codecov/codecov-action@v5
|
|
52
|
+
|
|
53
|
+
publish:
|
|
54
|
+
needs: build
|
|
55
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
permissions:
|
|
58
|
+
id-token: write
|
|
59
|
+
contents: read
|
|
60
|
+
steps:
|
|
61
|
+
- uses: actions/checkout@v5
|
|
62
|
+
|
|
63
|
+
- name: Install uv
|
|
64
|
+
uses: astral-sh/setup-uv@v7
|
|
65
|
+
with:
|
|
66
|
+
version: "latest"
|
|
67
|
+
|
|
68
|
+
- name: Set up Python
|
|
69
|
+
uses: actions/setup-python@v6
|
|
70
|
+
with:
|
|
71
|
+
python-version: "3.12"
|
|
72
|
+
|
|
73
|
+
- name: Build package
|
|
74
|
+
run: uv build
|
|
75
|
+
|
|
76
|
+
- name: Publish package
|
|
77
|
+
run: uv publish
|
|
@@ -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.
|
|
29
|
+
rev: v0.15.17
|
|
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.
|
|
40
|
+
rev: v3.19.1
|
|
49
41
|
hooks:
|
|
50
42
|
- id: pyupgrade
|
|
51
|
-
args: [--
|
|
43
|
+
args: [--py313-plus]
|
|
52
44
|
- repo: https://github.com/gitleaks/gitleaks
|
|
53
|
-
rev: v8.
|
|
45
|
+
rev: v8.22.1
|
|
54
46
|
hooks:
|
|
55
47
|
- id: gitleaks
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: klib
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.1
|
|
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,20 @@ 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
|
-
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Requires-Python: >=3.10
|
|
12
17
|
Requires-Dist: jinja2>=3.1.0
|
|
13
|
-
Requires-Dist: matplotlib>=3.
|
|
14
|
-
Requires-Dist: numpy>=
|
|
15
|
-
Requires-Dist: pandas<
|
|
16
|
-
Requires-Dist: plotly>=5.
|
|
17
|
-
Requires-Dist: scipy>=1.
|
|
18
|
+
Requires-Dist: matplotlib>=3.9.0
|
|
19
|
+
Requires-Dist: numpy>=2.0.0
|
|
20
|
+
Requires-Dist: pandas<4.0,>=1.4
|
|
21
|
+
Requires-Dist: plotly>=5.24.0
|
|
22
|
+
Requires-Dist: scipy>=1.14.0
|
|
18
23
|
Requires-Dist: screeninfo>=0.8.1
|
|
19
|
-
Requires-Dist: seaborn>=0.
|
|
24
|
+
Requires-Dist: seaborn>=0.13.0
|
|
20
25
|
Description-Content-Type: text/markdown
|
|
21
26
|
|
|
22
27
|
<p align="center"><img src="https://raw.githubusercontent.com/akanz1/klib/main/examples/images/header.png" alt="klib Header" width="859" height="304"></p>
|