Skip to content

Commit 1baf4bd

Browse files
committed
fix: Remove fix-encoding-pragma from pre-commit
1 parent 87389da commit 1baf4bd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212

1313
# auto-format code for the --pyXXXXXXX argument.
1414
- repo: "https://github.com/asottile/pyupgrade"
15-
rev: "v3.19.1"
15+
rev: "v3.20.0"
1616
hooks:
1717
- id: "pyupgrade"
1818
name: "Auto-standardize python syntax"
@@ -39,8 +39,10 @@ repos:
3939
- id: "python-no-eval"
4040
- id: "rst-backticks"
4141
- repo: "https://github.com/pre-commit/pre-commit-hooks"
42-
rev: "v5.0.0"
42+
rev: "v6.0.0"
4343
hooks:
44+
- id: "check-merge-conflict" # Prevent commit of merge-conflict markers
45+
- id: "debug-statements"
4446
- id: "check-yaml"
4547
- id: "check-json"
4648
- id: "check-symlinks" # Look for isolated symlinks
@@ -55,8 +57,3 @@ repos:
5557
- "master"
5658
- "--branch"
5759
- "main"
58-
59-
# https://github.com/pre-commit/pre-commit-hooks/issues/106
60-
- id: "fix-encoding-pragma" # Remove "# -*- coding: utf-8 -*-" from files
61-
args: # Python3 doesn't need the utf8 pragma
62-
- "--remove"

0 commit comments

Comments
 (0)