From 145d2f27b4f5a2079042620c3ecbde8cd61301bb Mon Sep 17 00:00:00 2001 From: Tom Cobb Date: Wed, 24 Jan 2024 11:22:28 +0000 Subject: [PATCH] Fix CI --- .github/workflows/ci.yml | 2 +- docs/conf.py | 2 +- pyproject.toml | 9 ++++----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b0fd6b41..5011033c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: if: ${{ ! needs.check.outputs.branch-pr }} uses: ./.github/workflows/_tox.yml with: - tox: pre-commit,test + tox: pre-commit,pytest docs: needs: check diff --git a/docs/conf.py b/docs/conf.py index fdfa2570..abb50268 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,7 +16,7 @@ project = "python-copier-template" # The full version, including alpha/beta/rc tags. -release = check_output(['git', 'describe', '--always', '--tags']).decode() +release = check_output(["git", "describe", "--always", "--tags"]).decode() # The short X.Y version. if "-" in release: diff --git a/pyproject.toml b/pyproject.toml index 35d5bf32..31b6a5a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,11 +52,10 @@ commands = src = ["src", "tests"] line-length = 88 select = [ - "C4", # flake8-comprehensions - https://beta.ruff.rs/docs/rules/#flake8-comprehensions-c4 - "E", # pycodestyle errors - https://beta.ruff.rs/docs/rules/#error-e - "F", # pyflakes rules - https://beta.ruff.rs/docs/rules/#pyflakes-f - "W", # pycodestyle warnings - https://beta.ruff.rs/docs/rules/#warning-w - "I", # isort - https://docs.astral.sh/ruff/rules/#isort-i + "E", # pycodestyle errors - https://beta.ruff.rs/docs/rules/#error-e + "F", # pyflakes rules - https://beta.ruff.rs/docs/rules/#pyflakes-f + "W", # pycodestyle warnings - https://beta.ruff.rs/docs/rules/#warning-w + "I", # isort - https://docs.astral.sh/ruff/rules/#isort-i ] [tool.pip-tools]