Python backend for a Slack's kudos plugin.
1# A generic, single database configuration.
2
3[alembic]
4# path to migration scripts
5script_location = kefi/migrations
6
7# template used to generate migration files
8# file_template = %%(rev)s_%%(slug)s
9
10# sys.path path, will be prepended to sys.path if present.
11# defaults to the current working directory.
12prepend_sys_path = .
13
14# timezone to use when rendering the date within the migration file
15# as well as the filename.
16# If specified, requires the python-dateutil library that can be
17# installed by adding `alembic[tz]` to the pip requirements
18# string value is passed to dateutil.tz.gettz()
19# leave blank for localtime
20# timezone =
21
22# max length of characters to apply to the
23# "slug" field
24# truncate_slug_length = 40
25
26# set to 'true' to run the environment during
27# the 'revision' command, regardless of autogenerate
28# revision_environment = false
29
30# set to 'true' to allow .pyc and .pyo files without
31# a source .py file to be detected as revisions in the
32# versions/ directory
33# sourceless = false
34
35# version location specification; This defaults
36# to alembic/versions. When using multiple version
37# directories, initial revisions must be specified with --version-path.
38# The path separator used here should be the separator specified by "version_path_separator"
39# version_locations = %(here)s/bar:%(here)s/bat:alembic/versions
40
41# version path separator; As mentioned above, this is the character used to split
42# version_locations. Valid values are:
43#
44# version_path_separator = :
45# version_path_separator = ;
46# version_path_separator = space
47version_path_separator = os # default: use os.pathsep
48
49# the output encoding used when revision files
50# are written from script.py.mako
51# output_encoding = utf-8
52
53sqlalchemy.url = driver://user:pass@localhost/dbname
54
55
56[post_write_hooks]
57# post_write_hooks defines scripts or Python functions that are run
58# on newly generated revision scripts. See the documentation for further
59# detail and examples
60
61# format using "black" - use the console_scripts runner, against the "black" entrypoint
62# hooks = black
63# black.type = console_scripts
64# black.entrypoint = black
65# black.options = -l 79 REVISION_SCRIPT_FILENAME
66
67# Logging configuration
68[loggers]
69keys = root,sqlalchemy,alembic
70
71[handlers]
72keys = console
73
74[formatters]
75keys = generic
76
77[logger_root]
78level = WARN
79handlers = console
80qualname =
81
82[logger_sqlalchemy]
83level = WARN
84handlers =
85qualname = sqlalchemy.engine
86
87[logger_alembic]
88level = INFO
89handlers =
90qualname = alembic
91
92[handler_console]
93class = StreamHandler
94args = (sys.stderr,)
95level = NOTSET
96formatter = generic
97
98[formatter_generic]
99format = %(levelname)-5.5s [%(name)s] %(message)s
100datefmt = %H:%M:%S