Skip to content

Commit

Permalink
chore: use pre-commit configuration from Flask
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Oct 11, 2024
1 parent f6cc1f5 commit 9854ca1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,14 @@
---
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.13.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: pyupgrade
args: ["--py39-plus"]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.11.0
hooks:
- id: reorder-python-imports
args: ["--application-directories", "src"]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-implicit-str-concat
- flake8-pyproject
- id: ruff
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-byte-order-marker
- id: check-merge-conflict
- id: debug-statements
- id: fix-byte-order-marker
- id: trailing-whitespace
- id: end-of-file-fixer
1 change: 1 addition & 0 deletions src/wtforms/csrf/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
validates with the hmac of the random value + expiration time, and the
expiration time is not passed, the CSRF validation will pass.
"""

import hmac
import os
from datetime import datetime
Expand Down

0 comments on commit 9854ca1

Please sign in to comment.