You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.0 KiB

  1. # A generic, single database configuration.
  2. [alembic]
  3. # path to migration scripts
  4. script_location = alembic
  5. # template used to generate migration files
  6. # file_template = %%(rev)s_%%(slug)s
  7. # timezone to use when rendering the date
  8. # within the migration file as well as the filename.
  9. # string value is passed to dateutil.tz.gettz()
  10. # leave blank for localtime
  11. # timezone =
  12. # max length of characters to apply to the
  13. # "slug" field
  14. # truncate_slug_length = 40
  15. # set to 'true' to run the environment during
  16. # the 'revision' command, regardless of autogenerate
  17. # revision_environment = false
  18. # set to 'true' to allow .pyc and .pyo files without
  19. # a source .py file to be detected as revisions in the
  20. # versions/ directory
  21. # sourceless = false
  22. # version location specification; this defaults
  23. # to alembic/versions. When using multiple version
  24. # directories, initial revisions must be specified with --version-path
  25. # version_locations = %(here)s/bar %(here)s/bat alembic/versions
  26. # the output encoding used when revision files
  27. # are written from script.py.mako
  28. # output_encoding = utf-8
  29. sqlalchemy.url = driver://user:pass@localhost/dbname
  30. [post_write_hooks]
  31. # post_write_hooks defines scripts or Python functions that are run
  32. # on newly generated revision scripts. See the documentation for further
  33. # detail and examples
  34. # format using "black" - use the console_scripts runner, against the "black" entrypoint
  35. # hooks=black
  36. # black.type=console_scripts
  37. # black.entrypoint=black
  38. # black.options=-l 79
  39. # Logging configuration
  40. [loggers]
  41. keys = root,sqlalchemy,alembic
  42. [handlers]
  43. keys = console
  44. [formatters]
  45. keys = generic
  46. [logger_root]
  47. level = WARN
  48. handlers = console
  49. qualname =
  50. [logger_sqlalchemy]
  51. level = WARN
  52. handlers =
  53. qualname = sqlalchemy.engine
  54. [logger_alembic]
  55. level = INFO
  56. handlers =
  57. qualname = alembic
  58. [handler_console]
  59. class = StreamHandler
  60. args = (sys.stderr,)
  61. level = NOTSET
  62. formatter = generic
  63. [formatter_generic]
  64. format = %(levelname)-5.5s [%(name)s] %(message)s
  65. datefmt = %H:%M:%S