-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalembic.ini
More file actions
49 lines (37 loc) · 1.47 KB
/
alembic.ini
File metadata and controls
49 lines (37 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
[alembic]
# path to migration scripts
script_location = src/tux/database/migrations
# template used to generate migration files
file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s
# sys.path path, will be prepended to sys.path
prepend_sys_path = src
# timezone to use when rendering the date within the migration file
# as well as the filename.
timezone = UTC
# max length of characters to apply to the
# "slug" field
# truncate_slug_length = 40
# set to 'true' to run the environment file as part of
# the 'revision' environment script, instead of invoking
# the migration class directly
# revision_environment = false
# set to 'true' to allow .pyc and .pyo files without
# a source .py file to be detected as revisions in the
# versions/ directory
# sourceless = false
# version path separator; defaults to os.sep
# version_path_separator = os # Use 'os' if using os.sep
# the output encoding used when revision files
# are written from script.py.mako
# output_encoding = utf-8
# This setting is used by pytest-alembic to locate migration scripts
version_locations = src/tux/database/migrations/versions
# Database URL - will be overridden by env.py based on environment
sqlalchemy.url = postgresql://placeholder
[post_write_hooks]
# Automatically format newly generated migration files using ruff
hooks = ruff_format
# Format using ruff
ruff_format.type = exec
ruff_format.executable = uv
ruff_format.options = run ruff format REVISION_SCRIPT_FILENAME