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 committed Apr 11, 2024
1 parent b73acb1 commit 37ae88d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 324 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 @@ -210,6 +210,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
157 changes: 0 additions & 157 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 37ae88d

Please sign in to comment.