Skip to content

Commit 54067d3

Browse files
committed
Replace deprecated hook with pyupgrade
pre-commit/pre-commit-hooks#1034 > ### Deprecated / replaced hooks > - `check-byte-order-marker`: instead use fix-byte-order-marker > - `fix-encoding-pragma`: instead use [`pyupgrade`](https://github.com/asottile/pyupgrade)
1 parent 0cafd77 commit 54067d3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ repos:
2626
args: [--unique]
2727
files: ^(?:packages|requirements)\.txt$
2828
- id: fix-byte-order-marker
29-
- id: fix-encoding-pragma
30-
args: [--remove]
3129
- id: requirements-txt-fixer
3230
- id: trailing-whitespace
3331
- repo: https://github.com/astral-sh/ruff-pre-commit

ruff.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ select = [
88
# https://docs.astral.sh/ruff/rules/#pyflakes-f
99
# https://github.com/PyCQA/pyflakes
1010
"F",
11+
# https://docs.astral.sh/ruff/rules/#pyupgrade-up
12+
# https://github.com/asottile/pyupgrade
13+
"UP",
1114
]
1215
ignore = []

0 commit comments

Comments
 (0)