Multimedika/Bot_Development
0
1# A generic, single database configuration.2 3[alembic]4# path to migration scripts5# Use forward slashes (/) also on windows to provide an os agnostic path6script_location = alembic7 8# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s9# Uncomment the line below if you want the files to be prepended with date and time10# see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file11# for all available tokens12# file_template = %%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s13 14# sys.path path, will be prepended to sys.path if present.15# defaults to the current working directory.16prepend_sys_path = .17 18# timezone to use when rendering the date within the migration file19# as well as the filename.20# If specified, requires the python>=3.9 or backports.zoneinfo library.21# Any required deps can installed by adding `alembic[tz]` to the pip requirements22# string value is passed to ZoneInfo()23# leave blank for localtime24# timezone =25 26# max length of characters to apply to the "slug" field27# truncate_slug_length = 4028 29# set to 'true' to run the environment during30# the 'revision' command, regardless of autogenerate31# revision_environment = false32 33# set to 'true' to allow .pyc and .pyo files without34# a source .py file to be detected as revisions in the35# versions/ directory36# sourceless = false37 38# version location specification; This defaults39# to alembic/versions. When using multiple version40# directories, initial revisions must be specified with --version-path.41# The path separator used here should be the separator specified by "version_path_separator" below.42# version_locations = %(here)s/bar:%(here)s/bat:alembic/versions43 44# version path separator; As mentioned above, this is the character used to split45# version_locations. The default within new alembic.ini files is "os", which uses os.pathsep.46# If this key is omitted entirely, it falls back to the legacy behavior of splitting on spaces and/or commas.47# Valid values for version_path_separator are:48#49# version_path_separator = :50# version_path_separator = ;51# version_path_separator = space52# version_path_separator = newline53version_path_separator = os # Use os.pathsep. Default configuration used for new projects.54 55# set to 'true' to search source files recursively56# in each "version_locations" directory57# new in Alembic version 1.1058# recursive_version_locations = false59 60# the output encoding used when revision files61# are written from script.py.mako62# output_encoding = utf-863 64sqlalchemy.url = placeholder_url65 66 67[post_write_hooks]68# post_write_hooks defines scripts or Python functions that are run69# on newly generated revision scripts. See the documentation for further70# content and examples71 72# format using "black" - use the console_scripts runner, against the "black" entrypoint73# hooks = black74# black.type = console_scripts75# black.entrypoint = black76# black.options = -l 79 REVISION_SCRIPT_FILENAME77 78# lint with attempts to fix using "ruff" - use the exec runner, execute a binary79# hooks = ruff80# ruff.type = exec81# ruff.executable = %(here)s/.venv/bin/ruff82# ruff.options = --fix REVISION_SCRIPT_FILENAME83 84# Logging configuration85[loggers]86keys = root,sqlalchemy,alembic87 88[handlers]89keys = console90 91[formatters]92keys = generic93 94[logger_root]95level = WARN96handlers = console97qualname =98 99[logger_sqlalchemy]100level = WARN101handlers =102qualname = sqlalchemy.engine103 104[logger_alembic]105level = INFO106handlers =107qualname = alembic108 109[handler_console]110class = StreamHandler111args = (sys.stderr,)112level = NOTSET113formatter = generic114 115[formatter_generic]116format = %(levelname)-5.5s [%(name)s] %(message)s117datefmt = %H:%M:%S118 