Skip to content

Commit fa2cffb

Browse files
[pre-commit.ci] pre-commit autoupdate (#9399)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
1 parent a87cb4c commit fa2cffb

File tree

38 files changed

+358
-389
lines changed

38 files changed

+358
-389
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
doc/data/messages/m/missing-final-newline/bad/crlf.py
1818
)$
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: "v0.1.9"
20+
rev: "v0.1.14"
2121
hooks:
2222
- id: ruff
2323
args: ["--fix"]
@@ -39,7 +39,7 @@ repos:
3939
- id: isort
4040
exclude: doc/data/messages/
4141
- repo: https://github.com/psf/black
42-
rev: 23.12.1
42+
rev: 24.1.1
4343
hooks:
4444
- id: black
4545
args: [--safe, --quiet]
@@ -158,7 +158,7 @@ repos:
158158
setup.cfg
159159
)$
160160
- repo: https://github.com/PyCQA/bandit
161-
rev: 1.7.6
161+
rev: 1.7.7
162162
hooks:
163163
- id: bandit
164164
args: ["-r", "-lll"]

doc/data/messages/a/arguments-renamed/bad.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ def brew(self, ingredient_name: str):
33
print(f"Brewing a {type(self)} with {ingredient_name}")
44

55

6-
class Apple(Fruit):
7-
...
6+
class Apple(Fruit): ...
87

98

109
class Orange(Fruit):

doc/data/messages/a/arguments-renamed/good.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ def brew(self, ingredient_name: str):
33
print(f"Brewing a {type(self)} with {ingredient_name}")
44

55

6-
class Apple(Fruit):
7-
...
6+
class Apple(Fruit): ...
87

98

109
class Orange(Fruit):
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from typing import Callable, Optional
22

33

4-
def func() -> Optional[Callable[[int], None]]:
5-
...
4+
def func() -> Optional[Callable[[int], None]]: ...
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cats: (int | str)
1+
cats: int | str
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from fruit import Fruit
22

33

4-
class Apple(Fruit):
5-
...
4+
class Apple(Fruit): ...

doc/data/messages/m/missing-module-docstring/good.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module providing a function printing python version."""
2+
23
import sys
34

45

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from abc import * # [unused-wildcard-import]
22

33

4-
class Animal(ABC):
5-
...
4+
class Animal(ABC): ...
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from abc import ABC
22

33

4-
class Animal(ABC):
5-
...
4+
class Animal(ABC): ...

doc/data/messages/u/use-symbolic-message-instead/good.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22

33

44
# pylint: disable-next=redefined-outer-name
5-
def eat(fruit_name: str):
6-
...
5+
def eat(fruit_name: str): ...

0 commit comments

Comments
 (0)