pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/pre-commit/pre-commit-hooks/commit/d2cf95b9cf90d4d8239e18a83aca19b8a6c8c345

ymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/global-7a1ad343bd40328c.css" /> deprecate check-docstring-first without replacement · pre-commit/pre-commit-hooks@d2cf95b · GitHub
Skip to content

Commit d2cf95b

Browse files
committed
deprecate check-docstring-first without replacement
this hook has unfixable false positives and is not that useful perhaps someone can write a flake8 plugin to replace the functionality
1 parent f4e0254 commit d2cf95b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.pre-commit-hooks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
entry: check-case-conflict
3030
language: python
3131
- id: check-docstring-first
32-
name: check docstring is first
32+
name: check docstring is first (deprecated)
3333
description: checks a common error of defining a docstring after code.
3434
entry: check-docstring-first
3535
language: python

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ Require literal syntax when initializing empty or zero Python builtin types.
4545
#### `check-case-conflict`
4646
Check for files with names that would conflict on a case-insensitive filesystem like MacOS HFS+ or Windows FAT.
4747

48-
#### `check-docstring-first`
49-
Checks for a common error of placing code before the docstring.
50-
5148
#### `check-executables-have-shebangs`
5249
Checks that non-binary executables have a proper shebang.
5350

@@ -207,6 +204,8 @@ Trims trailing whitespace.
207204

208205
- `check-byte-order-marker`: instead use fix-byte-order-marker
209206
- `fix-encoding-pragma`: instead use [`pyupgrade`](https://github.com/asottile/pyupgrade)
207+
- `check-docstring-first`: fundamentally flawed, deprecated without replacement.
208+
210209

211210
### As a standalone package
212211

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy