Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,20 @@ Check for files with names that would conflict on a case-insensitive filesystem
#### `check-docstring-first`
Checks for a common error of placing code before the docstring.

> [!NOTE]
> As raised in [#159](https://github.com/pre-commit/pre-commit-hooks/issues/159) attribute level docstrings will
> be flagged by this. A basic workaround is to wrap the docstring with `()` which will bypass this throwing and
> error, but could interfere with other libraries that parse them.

<details><summary>Example</summary>

```python
variable = 42
("""Attribute docstring""")
```

</details>

#### `check-executables-have-shebangs`
Checks that non-binary executables have a proper shebang.

Expand Down