From 885b59c516cc4784314b6a86d40eb56add92b7d4 Mon Sep 17 00:00:00 2001 From: Simon Sawicki Date: Fri, 16 Feb 2024 01:42:36 +0100 Subject: [PATCH] fixes --- .github/workflows/quick-test.yml | 4 ++-- pyproject.toml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/quick-test.yml b/.github/workflows/quick-test.yml index 7faf4ff58..2903e9c40 100644 --- a/.github/workflows/quick-test.yml +++ b/.github/workflows/quick-test.yml @@ -20,8 +20,8 @@ jobs: run: | python3 -m yt_dlp -v || true python3 ./devscripts/run_tests.py core - linter: - name: Linter + check: + name: Code check if: "!contains(github.event.head_commit.message, 'ci skip all')" runs-on: ubuntu-latest steps: diff --git a/pyproject.toml b/pyproject.toml index b1832eb46..847ed4c4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -124,10 +124,10 @@ features = ["dev"] [tool.hatch.envs.default.scripts] install = "pre-commit install" -lint = "ruff check {args:.}" +lint = "ruff check --fix {args:.}" format = "autopep8 --in-place {args:.}" check = [ - "ruff check --no-fix {args:.}", + "ruff check {args:.}", "autopep8 --diff {args:.}", ] test = "python -m devscripts.run_tests {args}"