Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

falsey → falsy #442

Merged
merged 3 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ repos:
language: pygrep
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest|RST
exclude: (.pre-commit-config.yaml|docs/pages/guides/style\.md)$
- id: disallow-words
name: Disallow certain words
language: pygrep
entry: "[Ff]alsey"
exclude: .pre-commit-config.yaml$
- id: disallow-bad-permalinks
name: Disallow _ in permalinks
language: pygrep
Expand Down
2 changes: 1 addition & 1 deletion src/sp_repo_review/checks/mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class MY106(MyPy):
def check(pyproject: dict[str, Any]) -> bool:
"""
Must have `"truthy-bool"` in `enable_error_code = []`. This catches
mistakes in using a value as truthy if it cannot be falsey.
mistakes in using a value as truthy if it cannot be falsy.

```toml
[tool.mypy]
Expand Down