Sources of Telegram bot for cryptopotato chat. https://t.me/devpotato_bot
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.

84 lines
2.0 KiB

  1. [alembic]
  2. # path to migration scripts
  3. script_location = %(here)s/alembic
  4. # template used to generate migration files
  5. # file_template = %%(rev)s_%%(slug)s
  6. # timezone to use when rendering the date
  7. # within the migration file as well as the filename.
  8. # string value is passed to dateutil.tz.gettz()
  9. # leave blank for localtime
  10. # timezone =
  11. # max length of characters to apply to the
  12. # "slug" field
  13. # truncate_slug_length = 40
  14. # set to 'true' to run the environment during
  15. # the 'revision' command, regardless of autogenerate
  16. # revision_environment = false
  17. # set to 'true' to allow .pyc and .pyo files without
  18. # a source .py file to be detected as revisions in the
  19. # versions/ directory
  20. # sourceless = false
  21. # version location specification; this defaults
  22. # to alembic/versions. When using multiple version
  23. # directories, initial revisions must be specified with --version-path
  24. # version_locations = %(here)s/bar %(here)s/bat alembic/versions
  25. # the output encoding used when revision files
  26. # are written from script.py.mako
  27. # output_encoding = utf-8
  28. # This is a dummy URL, see instructions on setting an actual URL in README (in script_location directory)
  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