Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 19, 2024
1 parent c705267 commit 598fd9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/aiida/storage/sqlite_dos/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ class Model(BaseModel, defer_build=True):
filepath: str = Field(
title='Directory of the backend',
description='Filepath of the directory in which to store data for this backend.',
default_factory=lambda: str(AiiDAConfigPathResolver.get_configuration_directory() / 'repository' / f'sqlite_dos_{uuid4().hex}'),
default_factory=lambda: str(
AiiDAConfigPathResolver.get_configuration_directory() / 'repository' / f'sqlite_dos_{uuid4().hex}'
),
)

@field_validator('filepath')
Expand Down
2 changes: 1 addition & 1 deletion tests/manage/configuration/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import pytest
from aiida.common import exceptions
from aiida.manage.configuration import Profile, settings
from aiida.manage.configuration.settings import AiiDAConfigPathResolver
from aiida.manage.configuration.config import Config
from aiida.manage.configuration.migrations import CURRENT_CONFIG_VERSION, OLDEST_COMPATIBLE_CONFIG_VERSION
from aiida.manage.configuration.options import get_option
from aiida.manage.configuration.settings import AiiDAConfigPathResolver
from aiida.storage.sqlite_temp import SqliteTempBackend


Expand Down

0 comments on commit 598fd9a

Please sign in to comment.