mirror of https://github.com/streamlink/streamlink
tools: bump ruff to 0.3.0 and fix issues
This commit is contained in:
parent
247c6cfa11
commit
d55eb2792b
|
@ -35,7 +35,7 @@ jobs:
|
||||||
-r dev-requirements.txt
|
-r dev-requirements.txt
|
||||||
- name: ruff
|
- name: ruff
|
||||||
run: >
|
run: >
|
||||||
python -m ruff .
|
python -m ruff check .
|
||||||
|
|
||||||
typing:
|
typing:
|
||||||
name: Typing
|
name: Typing
|
||||||
|
|
|
@ -15,7 +15,7 @@ pytest-cov
|
||||||
coverage[toml]
|
coverage[toml]
|
||||||
|
|
||||||
# code-linting
|
# code-linting
|
||||||
ruff ==0.2.2
|
ruff ==0.3.0
|
||||||
|
|
||||||
# typing
|
# typing
|
||||||
mypy ==1.8.0
|
mypy ==1.8.0
|
||||||
|
|
|
@ -12,7 +12,6 @@ from typing_extensions import TypeAlias
|
||||||
from streamlink.plugin.api.validate import Schema
|
from streamlink.plugin.api.validate import Schema
|
||||||
from streamlink.session import Streamlink
|
from streamlink.session import Streamlink
|
||||||
|
|
||||||
|
|
||||||
# START: borrowed from typeshed / types-requests
|
# START: borrowed from typeshed / types-requests
|
||||||
# https://github.com/python/typeshed/blob/b3db49abbd563a8543783fcd2b4d6765b32812b0/stubs/requests/requests/sessions.pyi
|
# https://github.com/python/typeshed/blob/b3db49abbd563a8543783fcd2b4d6765b32812b0/stubs/requests/requests/sessions.pyi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue