From 49de13d1bb544b4638dcf1dd2785433d781e2e06 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:25:00 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#81) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.1.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.1.7) * Update lint_python.yml * Update lint_python.yml --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss --- .github/workflows/lint_python.yml | 8 +++++--- .pre-commit-config.yaml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 26bdcbf..2d4c399 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -4,8 +4,8 @@ jobs: lint_python: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: 3.x - run: pip install --upgrade pip ruff setuptools wheel @@ -15,7 +15,7 @@ jobs: run: ruff --exit-zero --select=ALL --statistics --target-version=py37 . - name: "Ruff: All fixable (ruff --fix) issues" run: ruff --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102 - --statistics --target-version=py37 . || true | grep "\[\*\]" + --statistics --target-version=py38 . || true | grep "\[\*\]" - run: pip install black codespell mypy pytest safety - run: black --check . - run: codespell --quiet-level=1 # --ignore-words-list="" --skip="*.css,*.js,*.lock" @@ -24,4 +24,6 @@ jobs: - run: mypy --ignore-missing-imports --install-types --non-interactive . - run: pytest --doctest-modules . || true - run: pytest . || true + - run: pip --version + - run: python -m pip --version - run: safety check diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c1a0b7c..acef9d8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,7 +10,7 @@ repos: args: - --quiet-level=2 - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.7 hooks: - id: ruff args: