Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-byte-order-marker
- id: trailing-whitespace
Expand All @@ -9,16 +9,16 @@ repos:
args: [--remove]
- id: check-yaml
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
rev: v3.13.0
hooks:
- id: reorder-python-imports
args: ['--application-directories=.:src', --py3-plus]
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear]
Expand All @@ -31,11 +31,11 @@ repos:
language: python
additional_dependencies: [pygments, restructuredtext_lint]
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
rev: v2.3.1
hooks:
- id: autoflake
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.11.2
hooks:
- id: mypy
files: ^(src/|tests/)
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,5 @@ ignore =
W503
F401
F811
E704
max-line-length = 80
3 changes: 1 addition & 2 deletions src/pytest_flask/live_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ def run(
debug: Union[bool, None] = None,
load_dotenv: bool = True,
**options: Any,
) -> None:
...
) -> None: ...


# force 'fork' on macOS
Expand Down
6 changes: 2 additions & 4 deletions src/pytest_flask/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@
class _SupportsPytestFlaskEqual(Protocol):
status_code: int

def __eq__(self, other: Any) -> bool:
...
def __eq__(self, other: Any) -> bool: ...

def __ne__(self, other: Any) -> bool:
...
def __ne__(self, other: Any) -> bool: ...


class JSONResponse:
Expand Down
Loading