This commit is contained in:
Simon Sawicki 2024-02-16 01:42:36 +01:00
parent 286b5c7a31
commit 885b59c516
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -20,8 +20,8 @@ jobs:
run: | run: |
python3 -m yt_dlp -v || true python3 -m yt_dlp -v || true
python3 ./devscripts/run_tests.py core python3 ./devscripts/run_tests.py core
linter: check:
name: Linter name: Code check
if: "!contains(github.event.head_commit.message, 'ci skip all')" if: "!contains(github.event.head_commit.message, 'ci skip all')"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View file

@ -124,10 +124,10 @@ features = ["dev"]
[tool.hatch.envs.default.scripts] [tool.hatch.envs.default.scripts]
install = "pre-commit install" install = "pre-commit install"
lint = "ruff check {args:.}" lint = "ruff check --fix {args:.}"
format = "autopep8 --in-place {args:.}" format = "autopep8 --in-place {args:.}"
check = [ check = [
"ruff check --no-fix {args:.}", "ruff check {args:.}",
"autopep8 --diff {args:.}", "autopep8 --diff {args:.}",
] ]
test = "python -m devscripts.run_tests {args}" test = "python -m devscripts.run_tests {args}"