Skip to content

Commit

Permalink
[pre-commit.ci] Apply automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2024
1 parent 42031c2 commit 3799f38
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion conda-store-server/conda_store_server/_internal/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
)

from conda_store_server._internal import conda_utils, schema, utils
from conda_store_server.exception import BuildPathError
from conda_store_server._internal.environment import validate_environment
from conda_store_server.exception import BuildPathError

logger = logging.getLogger("orm")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
from fastapi.responses import JSONResponse, PlainTextResponse, RedirectResponse

from conda_store_server import __version__, api, app
from conda_store_server._internal import orm, schema, utils
from conda_store_server._internal import orm, schema
from conda_store_server._internal.environment import filter_environments
from conda_store_server._internal.schema import AuthenticationToken, Permissions
from conda_store_server._internal.server import dependencies
from conda_store_server.server.auth import Authentication
from conda_store_server.exception import CondaStoreError
from conda_store_server.server.auth import Authentication


class PaginatedArgs(TypedDict):
Expand Down
6 changes: 2 additions & 4 deletions conda-store-server/conda_store_server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
from traitlets.config import LoggingConfigurable

from conda_store_server import CONDA_STORE_DIR, BuildKey, api, storage
from conda_store_server.exception import CondaStoreError
from conda_store_server._internal import conda_utils, environment, orm, schema, utils
from conda_store_server.exception import CondaStoreError
from conda_store_server.plugins import hookspec, plugin_manager
from conda_store_server.plugins.types import lock

Expand Down Expand Up @@ -857,9 +857,7 @@ def delete_build(self, db: Session, build_id: int):
schema.BuildStatus.FAILED,
schema.BuildStatus.COMPLETED,
]:
raise CondaStoreError(
"cannot delete build since not finished building"
)
raise CondaStoreError("cannot delete build since not finished building")

build.deleted_on = datetime.datetime.utcnow()
db.commit()
Expand Down
1 change: 1 addition & 0 deletions conda-store-server/conda_store_server/exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.


class CondaStoreError(Exception):
@property
def message(self):
Expand Down

0 comments on commit 3799f38

Please sign in to comment.