tools: bump ruff to 0.3.0 and fix issues

This commit is contained in:
bastimeyer 2024-02-29 18:01:20 +01:00 committed by Sebastian Meyer
parent 247c6cfa11
commit d55eb2792b
3 changed files with 2 additions and 3 deletions

View File

@ -35,7 +35,7 @@ jobs:
-r dev-requirements.txt
- name: ruff
run: >
python -m ruff .
python -m ruff check .
typing:
name: Typing

View File

@ -15,7 +15,7 @@ pytest-cov
coverage[toml]
# code-linting
ruff ==0.2.2
ruff ==0.3.0
# typing
mypy ==1.8.0

View File

@ -12,7 +12,6 @@ from typing_extensions import TypeAlias
from streamlink.plugin.api.validate import Schema
from streamlink.session import Streamlink
# START: borrowed from typeshed / types-requests
# https://github.com/python/typeshed/blob/b3db49abbd563a8543783fcd2b4d6765b32812b0/stubs/requests/requests/sessions.pyi