Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
1d9acdd
Fix missing type hints
chrimaho Aug 3, 2025
2de8701
Remove redundant lines
chrimaho Aug 3, 2025
5f32f50
Enhance type checking in `checkers.py` and `output.py` by adding more…
chrimaho Aug 16, 2025
713ae0e
Run linting for better formatting
chrimaho Aug 16, 2025
fa4ec29
Add `docstring-format-checker` to `docs` dependencies and tidy up all…
chrimaho Oct 5, 2025
5107d2d
Refactor docstring validation and fix CLI argument handling
chrimaho Oct 5, 2025
e4e7676
Comment out project scripts in `pyproject.toml`
chrimaho Oct 5, 2025
ff3dba7
Standardise GitHub Actions workflow configuration
chrimaho Oct 5, 2025
b408c39
Migrate docstring format checker to pre-commit hook
chrimaho Oct 6, 2025
1fb978e
Refactor type annotations and improve commit formatting
chrimaho Oct 6, 2025
baf5032
Replace `mypy` with `ty` for type checking
chrimaho Dec 28, 2025
31dc776
Bump package versions in the `pre-commit` config file
chrimaho Dec 28, 2025
0609a01
Clean up outdated checks in the `pre-commit` config file
chrimaho Dec 28, 2025
167398f
Eliminate redundant scripts from the `pyproject.toml` file, prefer th…
chrimaho Dec 28, 2025
b0da3dd
Add `complexipy` for code complexity analysis
chrimaho Dec 28, 2025
008cdf5
Update pre-commit hook exclusions
chrimaho Dec 28, 2025
6dcf1cd
Update utility scripts to use dynamic package name constants.
chrimaho Dec 28, 2025
1781bf0
Refactor and generalise `check_docstrings()`
chrimaho Dec 28, 2025
af5d00c
Reorder checks and add complexity validation
chrimaho Dec 28, 2025
b51e693
Fix missing `complexipy` dependency
chrimaho Dec 28, 2025
43c039d
Update `check_type` variadic `tuple` hints
chrimaho Dec 28, 2025
4415ef4
Standardise type hints and improve type checks
chrimaho Dec 28, 2025
f2d9152
Add new `validators` utility
chrimaho Dec 28, 2025
9bb4c8b
Add missing typehints to the functions and methods in the `dictionari…
chrimaho Dec 28, 2025
02acdeb
Fix docsting error in the `dictionaries` module
chrimaho Dec 28, 2025
1eeacc8
In the `lists` module, fix types in docstrings to match the function …
chrimaho Dec 28, 2025
3ea392b
Fix tuple type hint for nested parameters
chrimaho Dec 28, 2025
48da0dd
Fix formatting
chrimaho Dec 28, 2025
9ececa7
Remove Python version upper bound
chrimaho Dec 28, 2025
e1d1240
Standardise package metadata and versioning
chrimaho Dec 28, 2025
2e057dd
Remove redundant `Makefile`
chrimaho Dec 28, 2025
14781b7
Update `print_or_log_output()` function typing
chrimaho Dec 28, 2025
857900f
Fix misaligned parameter docs and function signatures
chrimaho Dec 28, 2025
2abcd3b
Refactor retry logic into a helper class
chrimaho Dec 28, 2025
bb46a37
Standardise exception storage and update type hints
chrimaho Dec 28, 2025
5999a79
Remove redundant metadata attributes
chrimaho Dec 28, 2025
50efdd9
Refactor git utilities and subprocess handling
chrimaho Dec 28, 2025
d7ef4f6
Refactor CI/CD and add support Python for 3.14
chrimaho Dec 28, 2025
152e120
Update README to include package changes
chrimaho Dec 28, 2025
9a8bc46
Delete `requirements/` directory in preference for `pyproject.toml` c…
chrimaho Dec 28, 2025
f11c76b
Merge remote-tracking branch 'origin/main' into updates
chrimaho Dec 28, 2025
9884a0c
Merge remote-tracking branch 'origin/main' into updates
chrimaho Dec 28, 2025
aad6e43
Simplify directory removal flags
chrimaho Dec 28, 2025
47327fa
Merge remote-tracking branch 'origin/main' into updates
chrimaho Dec 28, 2025
57c8f79
Expose methods in the `Validators()` class
chrimaho Dec 28, 2025
4b24e77
Add explicit return to `print_or_log_output()`
chrimaho Dec 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
346 changes: 135 additions & 211 deletions .github/workflows/cd.yml

Large diffs are not rendered by default.

56 changes: 33 additions & 23 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
repos:
# Fixes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v5.0.0"
rev: "v6.0.0"
hooks:
# File name fixes
- id: check-case-conflict
Expand Down Expand Up @@ -33,33 +33,22 @@ repos:

# Linter
- repo: https://github.com/psf/black
rev: "25.1.0"
rev: "25.12.0"
hooks:
- id: black
language_version: python3.13
args:
- "--config=pyproject.toml"
- repo: https://github.com/adamchainz/blacken-docs
rev: "1.19.1"
rev: "1.20.0"
hooks:
- id: blacken-docs
additional_dependencies:
- "black>=23.3"

# Run MyPy type checks
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.16.1"
hooks:
- id: mypy
files: src/toolbox_python
args:
- "--install-types"
- "--config-file=pyproject.toml"
- "--allow-redefinition"

# Reorder Python imports
- repo: https://github.com/pycqa/isort
rev: "6.0.1"
rev: "7.0.0"
hooks:
- id: isort
name: isort (python)
Expand All @@ -68,7 +57,7 @@ repos:

# Find any outdated syntax and replace with modern equivalents
- repo: https://github.com/asottile/pyupgrade
rev: "v3.20.0"
rev: "v3.21.2"
hooks:
- id: pyupgrade
name: Upgrade Python features
Expand All @@ -88,21 +77,37 @@ repos:

# Remove unused import statements
- repo: https://github.com/hadialqattan/pycln
rev: "v2.5.0"
rev: "v2.6.0"
hooks:
- id: pycln
args:
- "--all"

# Check uv configs
- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.7.20"
rev: "0.9.18"
hooks:
- id: uv-lock
- id: uv-sync
# args:
# - "--all-groups"

# Check docstrings
- repo: https://github.com/data-science-extensions/docstring-format-checker
rev: "v1.9.0"
hooks:
- id: docstring-format-checker
name: Docstring Format Checker
args:
- "--config=pyproject.toml"
- "--output=list"
- "--check"
exclude: |
(?x)^(
src/tests/.*$|
src/utils/.*$
)

# Everything run locally
- repo: local
hooks:
Expand All @@ -118,9 +123,14 @@ repos:
- "-rn" # Only display messages
- "-sn" # Don't display the score

# Check
- id: check-docstrings
name: Check Docstrings
entry: uv run --no-sync --link-mode=copy check-docstrings
language: system
- id: ty
name: ty-check
entry: uv run ty check ./src/toolbox_python
language: python
types: [python]
pass_filenames: true
exclude: |
(?x)^(
src/tests/.*$|
src/utils/.*$
)
212 changes: 0 additions & 212 deletions Makefile

This file was deleted.

Loading