Skip to content

Commit 9854ca1

Browse files
committed
chore: use pre-commit configuration from Flask
1 parent f6cc1f5 commit 9854ca1

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

.pre-commit-config.yaml

+8-24
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
1-
---
21
repos:
3-
- repo: https://github.com/asottile/pyupgrade
4-
rev: v3.13.0
2+
- repo: https://github.com/astral-sh/ruff-pre-commit
3+
rev: v0.6.9
54
hooks:
6-
- id: pyupgrade
7-
args: ["--py39-plus"]
8-
- repo: https://github.com/asottile/reorder_python_imports
9-
rev: v3.11.0
10-
hooks:
11-
- id: reorder-python-imports
12-
args: ["--application-directories", "src"]
13-
- repo: https://github.com/psf/black
14-
rev: 23.9.1
15-
hooks:
16-
- id: black
17-
- repo: https://github.com/pycqa/flake8
18-
rev: 6.1.0
19-
hooks:
20-
- id: flake8
21-
additional_dependencies:
22-
- flake8-bugbear
23-
- flake8-implicit-str-concat
24-
- flake8-pyproject
5+
- id: ruff
6+
- id: ruff-format
257
- repo: https://github.com/pre-commit/pre-commit-hooks
26-
rev: v4.4.0
8+
rev: v5.0.0
279
hooks:
28-
- id: check-byte-order-marker
10+
- id: check-merge-conflict
11+
- id: debug-statements
12+
- id: fix-byte-order-marker
2913
- id: trailing-whitespace
3014
- id: end-of-file-fixer

src/wtforms/csrf/session.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
validates with the hmac of the random value + expiration time, and the
1313
expiration time is not passed, the CSRF validation will pass.
1414
"""
15+
1516
import hmac
1617
import os
1718
from datetime import datetime

0 commit comments

Comments
 (0)