mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 07:09:16 +00:00
Make autopep8 not change commit in pre-commit
This commit is contained in:
parent
f9fbde8f36
commit
d7624ba08d
|
@ -3,13 +3,11 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: linter
|
- id: linter
|
||||||
name: linter
|
name: linter
|
||||||
entry: hatch run lint --no-fix
|
entry: hatch run lint
|
||||||
language: system
|
language: system
|
||||||
types: [python]
|
types: [python]
|
||||||
pass_filenames: false
|
|
||||||
- id: format
|
- id: format
|
||||||
name: format
|
name: format
|
||||||
entry: hatch run format
|
entry: hatch run format --diff
|
||||||
language: system
|
language: system
|
||||||
types: [python]
|
types: [python]
|
||||||
pass_filenames: true
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ dependencies = ["yt-dlp[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 {args:.}"
|
||||||
format = "autopep8 {args:.}"
|
format = "autopep8 {args:--in-place .}"
|
||||||
tests = "python -m devscripts.run_tests {args}"
|
tests = "python -m devscripts.run_tests {args}"
|
||||||
|
|
||||||
[[tool.hatch.envs.default.overrides.env.TEST_ALL.matrix.value]]
|
[[tool.hatch.envs.default.overrides.env.TEST_ALL.matrix.value]]
|
||||||
|
@ -172,7 +172,6 @@ relative-imports-order = "closest-to-furthest"
|
||||||
|
|
||||||
[tool.autopep8]
|
[tool.autopep8]
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
in-place = true
|
|
||||||
recursive = true
|
recursive = true
|
||||||
jobs = 0
|
jobs = 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue