diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 393ca0f..505b0b1 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -3,7 +3,7 @@ name: Latest commit env: CACHE_VERSION: 1 DEFAULT_PYTHON: "3.14" - PRE_COMMIT_HOME: ~/.cache/pre-commit + PREK_HOME: ~/.cache/prek VENV: venv on: @@ -75,13 +75,12 @@ jobs: pip install uv uv venv --seed venv . venv/bin/activate - uv pip install pre-commit -r requirements.txt -r requirements-test.txt - pre-commit install - pre-commit install-hooks - - name: Full pre-commit + uv pip install prek -r requirements.txt -r requirements-test.txt + prek install + - name: Full prek (pre-commit) run: | . venv/bin/activate - SKIP=no-commit-to-branch pre-commit run --show-diff-on-failure --color=always --all-files + SKIP=no-commit-to-branch prek run --show-diff-on-failure --color=always --all-files pytest: runs-on: ubuntu-latest diff --git a/.markdownlint.yaml b/.markdownlint.yaml deleted file mode 100644 index c5006e5..0000000 --- a/.markdownlint.yaml +++ /dev/null @@ -1,5 +0,0 @@ -default: true -MD013: false -MD024: false -MD033: false -MD041: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 20e495c..964bb76 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: exclude_types: [csv, json] exclude: ^userdata/|^fixtures/ - repo: https://github.com/PyCQA/bandit - rev: 1.8.6 + rev: 1.9.2 hooks: - id: bandit name: "Bandit checking" @@ -56,14 +56,14 @@ repos: - id: yamllint name: "YAML linting" - repo: https://github.com/shellcheck-py/shellcheck-py - rev: v0.10.0.1 + rev: v0.11.0.1 hooks: - id: shellcheck name: "Shell checking" args: - --external-sources - repo: https://github.com/cdce8p/python-typing-update - rev: v0.7.3 + rev: v0.8.1 hooks: # Run `python-typing-update` hook manually from time to time # to update python typing syntax. @@ -76,10 +76,11 @@ repos: - --force - --keep-updates files: ^(airos|tests|script)/.+\.py$ - - repo: https://github.com/igorshubovych/markdownlint-cli - rev: v0.45.0 + - repo: https://github.com/jackdewinter/pymarkdown + rev: v0.9.34 hooks: - - id: markdownlint + - id: pymarkdown + name: MarkDown Lint - repo: local hooks: - id: parsetest @@ -91,20 +92,20 @@ repos: files: ^(airos|tests|script)/.+\.py$|^fixtures/userdata/.+\.json$ pass_filenames: false - id: pytest - name: "pytest" + name: "Testing using pytest" entry: script/run-in-env.sh pytest --log-level info tests/ --cov='airos/' language: script types: [python] pass_filenames: false files: ^(airos|tests|script)/.+\.py$ - id: pylint - name: "pylinting" + name: "Linting with pylint" entry: script/run-in-env.sh pylint -j 0 language: script types: [python] files: ^(airos|tests|script)/.+\.py$ - id: mypy - name: mypy + name: "Typing check using mypy" entry: script/run-in-env.sh mypy language: script require_serial: true diff --git a/.pymarkdown b/.pymarkdown new file mode 100644 index 0000000..bf4eee9 --- /dev/null +++ b/.pymarkdown @@ -0,0 +1 @@ +{ "plugins": { "md013": { "enabled": false }, "md024": { "enabled": false }, "md033": { "enabled": false }, "md041": { "enabled": false } } } diff --git a/CHANGELOG.md b/CHANGELOG.md index cafd24e..ba79163 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [0.6.2] - 2026-01-12 + +### Changed + +- Migrated pre-commit to prek + ## [0.6.1] - 2026-01-03 ### Added diff --git a/pyproject.toml b/pyproject.toml index 09927a4..7b01a90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "airos" -version = "0.6.1" +version = "0.6.2" license = "MIT" description = "Ubiquiti airOS module(s) for Python 3." readme = "README.md"