Commit 9854ca1 1 parent f6cc1f5 commit 9854ca1 Copy full SHA for 9854ca1
File tree 2 files changed +9
-24
lines changed
2 files changed +9
-24
lines changed Original file line number Diff line number Diff line change 1
- ---
2
1
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
5
4
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
25
7
- repo : https://github.com/pre-commit/pre-commit-hooks
26
- rev : v4.4 .0
8
+ rev : v5.0 .0
27
9
hooks :
28
- - id : check-byte-order-marker
10
+ - id : check-merge-conflict
11
+ - id : debug-statements
12
+ - id : fix-byte-order-marker
29
13
- id : trailing-whitespace
30
14
- id : end-of-file-fixer
Original file line number Diff line number Diff line change 12
12
validates with the hmac of the random value + expiration time, and the
13
13
expiration time is not passed, the CSRF validation will pass.
14
14
"""
15
+
15
16
import hmac
16
17
import os
17
18
from datetime import datetime
You can’t perform that action at this time.
0 commit comments