Make autopep8 not change commit in pre-commit

This commit is contained in:
Simon Sawicki 2024-02-15 00:32:10 +01:00
parent f9fbde8f36
commit d7624ba08d
No known key found for this signature in database
2 changed files with 3 additions and 6 deletions

View File

@ -3,13 +3,11 @@ repos:
hooks:
- id: linter
name: linter
entry: hatch run lint --no-fix
entry: hatch run lint
language: system
types: [python]
pass_filenames: false
- id: format
name: format
entry: hatch run format
entry: hatch run format --diff
language: system
types: [python]
pass_filenames: true

View File

@ -88,7 +88,7 @@ dependencies = ["yt-dlp[dev]"]
[tool.hatch.envs.default.scripts]
install = "pre-commit install"
lint = "ruff check {args:.}"
format = "autopep8 {args:.}"
format = "autopep8 {args:--in-place .}"
tests = "python -m devscripts.run_tests {args}"
[[tool.hatch.envs.default.overrides.env.TEST_ALL.matrix.value]]
@ -172,7 +172,6 @@ relative-imports-order = "closest-to-furthest"
[tool.autopep8]
max_line_length = 120
in-place = true
recursive = true
jobs = 0