Skip to content

Commit

Permalink
fix pre-commit (add pyupgrade/blanket noqa)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed May 15, 2024
1 parent 9355e5f commit 1ceb7fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,23 @@ repos:
name: Validate Python
- id: trailing-whitespace
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
files: ^.*\.(py|md|rst)$
args: ["-L", "num,ans", "-w"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-noqa
name: Precision flake ignores
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
hooks:
- id: pyupgrade
name: Update code to new python versions
args: [--py38-plus]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
hooks:
Expand Down
2 changes: 1 addition & 1 deletion tin/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,6 @@
QUIZ_ISSUE_THRESHOLD = 5

try:
from .secret import * # noqa
from .secret import * # noqa: F403
except ImportError:
pass

0 comments on commit 1ceb7fc

Please sign in to comment.