Skip to content

Commit

Permalink
chore: update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Oct 16, 2023
1 parent 2e84356 commit 4f7a8b8
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
18 changes: 8 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
---
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.2.1
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.2.0
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: ["--application-directories", "src"]
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 23.9.1
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.0.292'
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-implicit-str-concat
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
rev: v4.5.0
hooks:
- id: check-byte-order-marker
- id: trailing-whitespace
Expand Down
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
),
ProjectLink("PyPI Releases", "https://pypi.org/project/WTForms-SQLAlchemy/"),
ProjectLink("Source Code", "https://github.com/wtforms/wtforms-sqlalchemy/"),
ProjectLink("Discord Chat", "https://discord.gg/F65P7Z9",),
ProjectLink(
"Discord Chat",
"https://discord.gg/F65P7Z9",
),
ProjectLink(
"Issue Tracker", "https://github.com/wtforms/wtforms-sqlalchemy/issues/"
),
Expand Down
3 changes: 1 addition & 2 deletions examples/flask/basic.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
from wtforms_sqlalchemy.orm import model_form

from flask import Flask
from flask import render_template
from flask import request
from flask_sqlalchemy import SQLAlchemy
from wtforms_sqlalchemy.orm import model_form

app = Flask(__name__)
app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///sample_db.sqlite"
Expand Down
10 changes: 5 additions & 5 deletions tests/tests.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
from unittest import TestCase
from wtforms_sqlalchemy.fields import QuerySelectField
from wtforms_sqlalchemy.fields import QuerySelectMultipleField
from wtforms_sqlalchemy.orm import model_form
from wtforms_sqlalchemy.orm import ModelConversionError
from wtforms_sqlalchemy.orm import ModelConverter

from sqlalchemy import create_engine
from sqlalchemy import ForeignKey
Expand All @@ -26,6 +21,11 @@
from wtforms.validators import InputRequired
from wtforms.validators import Optional
from wtforms.validators import Regexp
from wtforms_sqlalchemy.fields import QuerySelectField
from wtforms_sqlalchemy.fields import QuerySelectMultipleField
from wtforms_sqlalchemy.orm import model_form
from wtforms_sqlalchemy.orm import ModelConversionError
from wtforms_sqlalchemy.orm import ModelConverter

from .common import contains_validator
from .common import DummyPostData
Expand Down

0 comments on commit 4f7a8b8

Please sign in to comment.