Skip to content

Commit

Permalink
Merge pull request #111 from asyncee/pre-commit-fix-flake8-url
Browse files Browse the repository at this point in the history
pre-commit: Fix flake8 repo URL + mass-bump
  • Loading branch information
hartwork committed Nov 25, 2022
2 parents c099845 + efc6e58 commit f261c5b
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Expand Up @@ -3,22 +3,22 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.3.0
hooks:
- id: check-yaml
- id: check-merge-conflict
- id: end-of-file-fixer
exclude: '^easy_select2/static/easy_select2/vendor/'
- id: trailing-whitespace

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.1
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
hooks:
- id: flake8
args: ['--show-source']
exclude: '^(docs/source/|sampleproject/demoapp/migrations/)'

- repo: https://github.com/pycqa/isort
rev: 4.3.21
rev: 5.10.1
hooks:
- id: isort
1 change: 1 addition & 0 deletions easy_select2/utils.py
@@ -1,6 +1,7 @@
# coding: utf-8

from django.db.models import ForeignKey

from easy_select2 import forms as es2_forms
from easy_select2.widgets import Select2, Select2Mixin, Select2Multiple

Expand Down
1 change: 1 addition & 0 deletions sampleproject/demoapp/admin.py
@@ -1,4 +1,5 @@
from django.contrib import admin

from easy_select2 import select2_modelform

from .models import Category, Note
Expand Down
1 change: 1 addition & 0 deletions sampleproject/demoapp/views.py
@@ -1,6 +1,7 @@
from django.urls import reverse_lazy
from django.views.generic import ListView, UpdateView
from django.views.generic.edit import CreateView

from easy_select2 import select2_modelform

from .models import Note
Expand Down
1 change: 1 addition & 0 deletions tests/test_forms.py
@@ -1,6 +1,7 @@
# coding: utf-8

from demoapp.models import TestFieldsModel

from easy_select2.forms import FixedModelForm


Expand Down
1 change: 1 addition & 0 deletions tests/test_utils.py
Expand Up @@ -4,6 +4,7 @@
import pytest
from demoapp import models as m
from django import forms

from easy_select2 import forms as es2_forms
from easy_select2 import utils, widgets

Expand Down
1 change: 1 addition & 0 deletions tests/test_widgets.py
Expand Up @@ -3,6 +3,7 @@
import mock
import pytest
from django.contrib.staticfiles.storage import staticfiles_storage

from easy_select2 import widgets


Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Expand Up @@ -19,7 +19,7 @@ deps =
django22: django>=2.2,<2.3
django32: django>=3.2,<3.3
django40: django>=4.0,<4.1
commands = py.test tests
commands = pytest tests
setenv = {[base]setenv}

[testenv:py310-coverage]
Expand All @@ -29,7 +29,7 @@ deps =
coverage
coveralls
commands =
coverage run --source easy_select2 -m py.test tests
coverage run --source easy_select2 -m pytest tests
coverage report -m
bash -c 'set -x; [[ -z $\{COVERALLS_REPO_TOKEN\} ]] || coveralls'
setenv = {[base]setenv}
Expand Down

0 comments on commit f261c5b

Please sign in to comment.