diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e0eeff..83fda76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,7 @@ jobs: run: | echo "PIP_CACHE=$(pip cache dir)" >> $GITHUB_OUTPUT echo "PDM_CACHE=$(pdm config cache_dir)" >> $GITHUB_OUTPUT + shell: bash - name: Cache PIP and PDM uses: actions/cache@v4 with: @@ -51,9 +52,7 @@ jobs: - name: Install dependencies run: | - pdm config venv.with_pip True pdm install -G :all --dev - pdm venv activate in-project - name: Run Test with tox run: pdm run tox - name: Upload coverage to Codecov diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b20fde4..f63f917 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,3 +47,8 @@ repos: hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] + + - repo: https://github.com/pdm-project/pdm + rev: 2.13.2 + hooks: + - id: pdm-lock-check diff --git a/pyproject.toml b/pyproject.toml index d9ea368..d992dae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -67,7 +67,7 @@ test-cov = {cmd="pytest --junitxml=junit/test-results.xml --cov --cov-report=xml doc = {shell = "cd docs && mkdocs serve", help = "Start the dev server for doc preview"} lint = "pre-commit run --all-files" lint-mypy = {cmd="mypy src", help="Run mypy type checker"} -lint-ruff = {cmd="ruff .", help="Run ruff linter"} +lint-ruff = {cmd="ruff check .", help="Run ruff linter"} [tool.pdm.dev-dependencies] dev = [