Skip to content

Commit

Permalink
Upgraded pre-commit hooks and fixed all files. (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz authored Feb 24, 2024
1 parent 8145e27 commit 61105b5
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.11'
- name: Pull Changes
if: github.event_name != 'pull_request'
run: git pull origin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.11'
- name: Install Requirements
run: pip install -r requirements.txt
- name: Git config
Expand Down
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: ^results/

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -13,14 +13,14 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.11.4
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.0.0
hooks:
- id: flake8
3 changes: 1 addition & 2 deletions benchmarks/form_benchmarks/form_validate/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from django.core.exceptions import ValidationError

from django import forms
from django.core.exceptions import ValidationError

from ...utils import bench_setup

Expand Down
3 changes: 1 addition & 2 deletions benchmarks/models.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os

from django.db import models

import django
from django.db import models

try:
os.environ["DJANGO_SETTINGS_MODULE"] = "benchmarks.settings"
Expand Down
3 changes: 1 addition & 2 deletions benchmarks/template_benchmarks/template_render/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from django import VERSION, template
from django.http import HttpRequest
from django.shortcuts import render

from django import VERSION, template

from ...utils import bench_setup


Expand Down
3 changes: 1 addition & 2 deletions benchmarks/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os

from django.core.management import CommandError, call_command

import django
from django.core.management import CommandError, call_command


def bench_setup(migrate=False):
Expand Down

0 comments on commit 61105b5

Please sign in to comment.