Skip to content

Commit ee08622

Browse files
[pre-commit.ci] pre-commit autoupdate, disable E704 (#189)
updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.5.0...v5.0.0) - [github.com/asottile/reorder-python-imports: v3.12.0 → v3.13.0](asottile/reorder-python-imports@v3.12.0...v3.13.0) - [github.com/psf/black: 23.12.1 → 24.10.0](psf/black@23.12.1...24.10.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.1.1](PyCQA/flake8@6.1.0...7.1.1) - [github.com/PyCQA/autoflake: v2.2.1 → v2.3.1](PyCQA/autoflake@v2.2.1...v2.3.1) - [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.11.2](pre-commit/mirrors-mypy@v1.8.0...v1.11.2) * Disable E704, incompatible with autoformatter Co-authored-by: Pierre Sassoulas <[email protected]>
1 parent c4ddce9 commit ee08622

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.5.0
3+
rev: v5.0.0
44
hooks:
55
- id: check-byte-order-marker
66
- id: trailing-whitespace
@@ -9,16 +9,16 @@ repos:
99
args: [--remove]
1010
- id: check-yaml
1111
- repo: https://github.com/asottile/reorder-python-imports
12-
rev: v3.12.0
12+
rev: v3.13.0
1313
hooks:
1414
- id: reorder-python-imports
1515
args: ['--application-directories=.:src', --py3-plus]
1616
- repo: https://github.com/psf/black
17-
rev: 23.12.1
17+
rev: 24.10.0
1818
hooks:
1919
- id: black
2020
- repo: https://github.com/PyCQA/flake8
21-
rev: 6.1.0
21+
rev: 7.1.1
2222
hooks:
2323
- id: flake8
2424
additional_dependencies: [flake8-bugbear]
@@ -31,11 +31,11 @@ repos:
3131
language: python
3232
additional_dependencies: [pygments, restructuredtext_lint]
3333
- repo: https://github.com/PyCQA/autoflake
34-
rev: v2.2.1
34+
rev: v2.3.1
3535
hooks:
3636
- id: autoflake
3737
- repo: https://github.com/pre-commit/mirrors-mypy
38-
rev: v1.8.0
38+
rev: v1.11.2
3939
hooks:
4040
- id: mypy
4141
files: ^(src/|tests/)

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,5 @@ ignore =
6464
W503
6565
F401
6666
F811
67+
E704
6768
max-line-length = 80

src/pytest_flask/live_server.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ def run(
2222
debug: Union[bool, None] = None,
2323
load_dotenv: bool = True,
2424
**options: Any,
25-
) -> None:
26-
...
25+
) -> None: ...
2726

2827

2928
# force 'fork' on macOS

src/pytest_flask/plugin.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@
3232
class _SupportsPytestFlaskEqual(Protocol):
3333
status_code: int
3434

35-
def __eq__(self, other: Any) -> bool:
36-
...
35+
def __eq__(self, other: Any) -> bool: ...
3736

38-
def __ne__(self, other: Any) -> bool:
39-
...
37+
def __ne__(self, other: Any) -> bool: ...
4038

4139

4240
class JSONResponse:

0 commit comments

Comments
 (0)