mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-12 19:33:22 +00:00
Address review
This commit is contained in:
parent
95d8d11698
commit
e0b46bb8ac
|
@ -2,7 +2,7 @@ repos:
|
|||
- repo: local
|
||||
hooks:
|
||||
- id: check
|
||||
name: code check
|
||||
name: code check (run hatch run fix if it fails)
|
||||
entry: hatch run check
|
||||
language: system
|
||||
types: [python]
|
||||
|
|
|
@ -145,7 +145,7 @@ # DEVELOPER INSTRUCTIONS
|
|||
$ hatch run install
|
||||
```
|
||||
|
||||
before creating commits so that the pre-commit hooks are properly initialized.
|
||||
so that required checks run automatically before a commit (using pre-commit).
|
||||
After this you can use `hatch shell` to enable a virtual environment that has development dependencies as well as `yt-dlp` installed.
|
||||
|
||||
Scripts can be used to run simple tasks, like linting or testing, without having to run `hatch shell` first:
|
||||
|
|
|
@ -121,9 +121,14 @@ pattern = "_pkg_version = '(?P<version>[^']+)'"
|
|||
|
||||
[tool.hatch.envs.default]
|
||||
features = ["dev"]
|
||||
path = ".venv"
|
||||
|
||||
[tool.hatch.envs.default.scripts]
|
||||
install = "pre-commit install"
|
||||
fix = [
|
||||
"format",
|
||||
"lint",
|
||||
]
|
||||
lint = "ruff check --fix {args:.}"
|
||||
format = "autopep8 --in-place {args:.}"
|
||||
check = [
|
||||
|
|
Loading…
Reference in a new issue