Skip to content

Commit 61105b5

Browse files
authored
Upgraded pre-commit hooks and fixed all files. (#79)
1 parent 8145e27 commit 61105b5

File tree

7 files changed

+10
-14
lines changed

7 files changed

+10
-14
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@v3
1717
- uses: actions/setup-python@v4
1818
with:
19-
python-version: '3.11'
19+
python-version: '3.11'
2020
- name: Pull Changes
2121
if: github.event_name != 'pull_request'
2222
run: git pull origin

.github/workflows/publish-results.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
uses: actions/checkout@v3
1111
- uses: actions/setup-python@v4
1212
with:
13-
python-version: '3.11'
13+
python-version: '3.11'
1414
- name: Install Requirements
1515
run: pip install -r requirements.txt
1616
- name: Git config

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: ^results/
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.5.0
66
hooks:
77
- id: check-added-large-files
88
- id: check-case-conflict
@@ -13,14 +13,14 @@ repos:
1313
- id: end-of-file-fixer
1414
- id: trailing-whitespace
1515
- repo: https://github.com/psf/black
16-
rev: 22.12.0
16+
rev: 24.2.0
1717
hooks:
1818
- id: black
1919
- repo: https://github.com/pycqa/isort
20-
rev: 5.11.4
20+
rev: 5.13.2
2121
hooks:
2222
- id: isort
2323
- repo: https://github.com/PyCQA/flake8
24-
rev: 6.0.0
24+
rev: 7.0.0
2525
hooks:
2626
- id: flake8

benchmarks/form_benchmarks/form_validate/benchmark.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from django.core.exceptions import ValidationError
2-
31
from django import forms
2+
from django.core.exceptions import ValidationError
43

54
from ...utils import bench_setup
65

benchmarks/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
22

3-
from django.db import models
4-
53
import django
4+
from django.db import models
65

76
try:
87
os.environ["DJANGO_SETTINGS_MODULE"] = "benchmarks.settings"

benchmarks/template_benchmarks/template_render/benchmark.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1+
from django import VERSION, template
12
from django.http import HttpRequest
23
from django.shortcuts import render
34

4-
from django import VERSION, template
5-
65
from ...utils import bench_setup
76

87

benchmarks/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
22

3-
from django.core.management import CommandError, call_command
4-
53
import django
4+
from django.core.management import CommandError, call_command
65

76

87
def bench_setup(migrate=False):

0 commit comments

Comments
 (0)