mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-06 22:12:19 +02:00
oopsies
This commit is contained in:
parent
b620c77b35
commit
f2a7447d8e
@ -3,6 +3,6 @@ repos:
|
||||
hooks:
|
||||
- id: fix
|
||||
name: Apply code fixes
|
||||
entry: hatch run fix
|
||||
entry: hatch fmt
|
||||
language: system
|
||||
types: [python]
|
||||
|
@ -239,10 +239,10 @@ ## Adding support for a new site
|
||||
1. Make sure your code follows [yt-dlp coding conventions](#yt-dlp-coding-conventions), passes [ruff](https://docs.astral.sh/ruff/tutorial/#getting-started) code checks and is properly formatted:
|
||||
|
||||
```shell
|
||||
$ hatch run check
|
||||
$ hatch fmt --check
|
||||
```
|
||||
|
||||
You can use `hatch run lint` and `hatch run format` to automatically fix problems.
|
||||
You can use `hatch fmt` to automatically fix problems.
|
||||
|
||||
1. Make sure your code works under all [Python](https://www.python.org/) versions supported by yt-dlp, namely CPython and PyPy for Python 3.8 and above. Backward compatibility is not required for even older versions of Python.
|
||||
1. When the tests pass, [add](https://git-scm.com/docs/git-add) the new files, [commit](https://git-scm.com/docs/git-commit) them and [push](https://git-scm.com/docs/git-push) the result, like this:
|
||||
|
Loading…
Reference in New Issue
Block a user