mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-18 10:49:30 +01:00
Make autopep8 not change commit in pre-commit
This commit is contained in:
parent
f9fbde8f36
commit
d7624ba08d
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user