Skip to content

Commit

Permalink
Run autoflake without ignore-init-module-imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Oct 22, 2024
1 parent 498ebb6 commit 9de8da6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ repos:
args:
- --in-place
- --remove-all-unused-imports
- --ignore-init-module-imports

- repo: https://github.com/psf/black
rev: 24.8.0
Expand Down
7 changes: 2 additions & 5 deletions src/palace/manager/api/sip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@
BasicAuthProviderLibrarySettings,
BasicAuthProviderSettings,
)
from palace.manager.api.problem_details import (
INVALID_CREDENTIALS,
PATRON_OF_ANOTHER_LIBRARY,
)
from palace.manager.api.problem_details import INVALID_CREDENTIALS
from palace.manager.api.sip.client import Sip2Encoding, SIPClient
from palace.manager.api.sip.dialect import Dialect as Sip2Dialect
from palace.manager.integration.settings import (
Expand All @@ -27,7 +24,7 @@
from palace.manager.service.analytics.analytics import Analytics
from palace.manager.sqlalchemy.model.patron import Patron
from palace.manager.util import MoneyUtility
from palace.manager.util.problem_detail import ProblemDetail, ProblemDetailException
from palace.manager.util.problem_detail import ProblemDetail


class SIP2Settings(BasicAuthProviderSettings):
Expand Down
1 change: 1 addition & 0 deletions src/palace/manager/sqlalchemy/model/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# autoflake: skip_file
"""
We rely on all of our sqlalchemy models being listed here, so that we can
make sure they are all registered with the declarative base.
Expand Down
4 changes: 1 addition & 3 deletions src/palace/manager/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
import string
from collections import Counter
from collections.abc import Generator, Iterable, Sequence
from typing import Any, SupportsIndex, TypeVar
from typing import Any, TypeVar

import sqlalchemy
from money import Money
from sqlalchemy import distinct, select
from sqlalchemy.sql.functions import func

import palace.manager.sqlalchemy.flask_sqlalchemy_session

Expand Down

0 comments on commit 9de8da6

Please sign in to comment.