Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ ci:
autoupdate_schedule: monthly
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: ["--py38-plus"]
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
rev: v3.16.0
hooks:
- id: reorder-python-imports
args: ["--application-directories", "src"]
files: flemi
- repo: https://github.com/psf/black
rev: 23.11.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
files: flemi
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.3.0
hooks:
- id: flake8
files: flemi
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v6.0.0
hooks:
- id: fix-byte-order-marker
- id: trailing-whitespace
Expand Down
1 change: 0 additions & 1 deletion flemi/api/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from .schemas import LoginSchema
from .schemas import RegisterSchema


# create authentication blueprint for API v4
auth_bp = APIBlueprint("auth", __name__, url_prefix="/auth")

Expand Down
1 change: 0 additions & 1 deletion flemi/api/me/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from .schemas import BasicProfileEditSchema
from .schemas import PrivateUserOutSchema


me_bp = APIBlueprint("me", __name__, url_prefix="/me")


Expand Down
1 change: 0 additions & 1 deletion flemi/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy


db = SQLAlchemy()
migrate = Migrate()
auth = HTTPTokenAuth()
Expand Down
2 changes: 1 addition & 1 deletion flemi/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
MIT License
Copyright (c) 2020 Andy Zhou
"""

import hashlib
import os
from datetime import datetime
Expand All @@ -18,7 +19,6 @@
from .extensions import db
from .shop_items import items


group_user_table = db.Table(
"group_user",
db.Column("user_id", db.Integer, db.ForeignKey("user.id")),
Expand Down
1 change: 1 addition & 0 deletions flemi/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
MIT License
Copyright (c) 2020 Andy Zhou
"""

import os
from os.path import abspath
from os.path import dirname
Expand Down