Skip to content

Commit

Permalink
Delete fix-encoding-pragma hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr authored Apr 2, 2024
1 parent da21b9b commit a13c895
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 323 deletions.
6 changes: 0 additions & 6 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,6 @@
entry: fix-byte-order-marker
language: python
types: [text]
- id: fix-encoding-pragma
name: fix python encoding pragma (deprecated)
description: 'adds # -*- coding: utf-8 -*- to the top of python files.'
language: python
entry: fix-encoding-pragma
types: [python]
- id: forbid-new-submodules
name: forbid new submodules
description: prevents addition of new git submodules.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ Trims trailing whitespace.
### Deprecated / replaced hooks

- `check-byte-order-marker`: instead use fix-byte-order-marker
- `fix-encoding-pragma`: instead use [`pyupgrade`](https://github.com/asottile/pyupgrade)

### As a standalone package

Expand Down
156 changes: 0 additions & 156 deletions pre_commit_hooks/fix_encoding_pragma.py

This file was deleted.

161 changes: 0 additions & 161 deletions tests/fix_encoding_pragma_test.py

This file was deleted.

0 comments on commit a13c895

Please sign in to comment.