Skip to content

Commit

Permalink
Enable https://github.com/asottile/pyupgrade + .git-blame-ignore-revs
Browse files Browse the repository at this point in the history
Signed-off-by: Stavros Ntentos <[email protected]>
  • Loading branch information
stdedos committed Oct 14, 2023
1 parent 85d7e42 commit ff18b58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Add `.pre-commit-config.yaml` + `pre-commit run -a`
85d7e422b36fb86e22990ede8c92f7ec95ac43ec
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ repos:
- id: pretty-format-json
args: [ "--no-sort-keys", "--autofix", "--indent=4" ]
exclude: ^.vscode/
# - repo: https://github.com/asottile/pyupgrade
# rev: v3.13.0
# hooks:
# - id: pyupgrade
# args:
# - --py36-plus
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
args:
- --py36-plus
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def fixture():
@pytest.mark.parametrize("id", range(2))
@pytest.fixture
def fixture_with_params(id):
return "{} not OK".format(id)
return f"{id} not OK"

Check warning on line 15 in tests/input/useless-pytest-mark-decorator/other_marks_using_for_fixture.py

View check run for this annotation

Codecov / codecov/patch

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

Added line #L15 was not covered by tests


@pytest.mark.custom_mark
Expand Down

0 comments on commit ff18b58

Please sign in to comment.