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: |
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:

View File

@ -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}"