Skip to content

Commit ff18b58

Browse files
committed
Enable https://github.com/asottile/pyupgrade + .git-blame-ignore-revs
Signed-off-by: Stavros Ntentos <[email protected]>
1 parent 85d7e42 commit ff18b58

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Add `.pre-commit-config.yaml` + `pre-commit run -a`
2+
85d7e422b36fb86e22990ede8c92f7ec95ac43ec

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ repos:
88
- id: pretty-format-json
99
args: [ "--no-sort-keys", "--autofix", "--indent=4" ]
1010
exclude: ^.vscode/
11-
# - repo: https://github.com/asottile/pyupgrade
12-
# rev: v3.13.0
13-
# hooks:
14-
# - id: pyupgrade
15-
# args:
16-
# - --py36-plus
11+
- repo: https://github.com/asottile/pyupgrade
12+
rev: v3.15.0
13+
hooks:
14+
- id: pyupgrade
15+
args:
16+
- --py36-plus
1717
- repo: https://github.com/PyCQA/autoflake
1818
rev: v2.2.1
1919
hooks:

tests/input/useless-pytest-mark-decorator/other_marks_using_for_fixture.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def fixture():
1212
@pytest.mark.parametrize("id", range(2))
1313
@pytest.fixture
1414
def fixture_with_params(id):
15-
return "{} not OK".format(id)
15+
return f"{id} not OK"
1616

1717

1818
@pytest.mark.custom_mark

0 commit comments

Comments
 (0)