pyproject.toml.mako 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. [tool.alembic]
  2. # path to migration scripts.
  3. # this is typically a path given in POSIX (e.g. forward slashes)
  4. # format, relative to the token %(here)s which refers to the location of this
  5. # ini file
  6. script_location = "${script_location}"
  7. # template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
  8. # Uncomment the line below if you want the files to be prepended with date and time
  9. # see https://alembic.sqlalchemy.org/en/latest/tutorial.html#editing-the-ini-file
  10. # for all available tokens
  11. # file_template = "%%(year)d_%%(month).2d_%%(day).2d_%%(hour).2d%%(minute).2d-%%(rev)s_%%(slug)s"
  12. # additional paths to be prepended to sys.path. defaults to the current working directory.
  13. prepend_sys_path = [
  14. "."
  15. ]
  16. # timezone to use when rendering the date within the migration file
  17. # as well as the filename.
  18. # If specified, requires the python>=3.9 or backports.zoneinfo library and tzdata library.
  19. # Any required deps can installed by adding `alembic[tz]` to the pip requirements
  20. # string value is passed to ZoneInfo()
  21. # leave blank for localtime
  22. # timezone =
  23. # max length of characters to apply to the "slug" field
  24. # truncate_slug_length = 40
  25. # set to 'true' to run the environment during
  26. # the 'revision' command, regardless of autogenerate
  27. # revision_environment = false
  28. # set to 'true' to allow .pyc and .pyo files without
  29. # a source .py file to be detected as revisions in the
  30. # versions/ directory
  31. # sourceless = false
  32. # version location specification; This defaults
  33. # to <script_location>/versions. When using multiple version
  34. # directories, initial revisions must be specified with --version-path.
  35. # version_locations = [
  36. # "%(here)s/alembic/versions",
  37. # "%(here)s/foo/bar"
  38. # ]
  39. # set to 'true' to search source files recursively
  40. # in each "version_locations" directory
  41. # new in Alembic version 1.10
  42. # recursive_version_locations = false
  43. # the output encoding used when revision files
  44. # are written from script.py.mako
  45. # output_encoding = "utf-8"
  46. # This section defines scripts or Python functions that are run
  47. # on newly generated revision scripts. See the documentation for further
  48. # detail and examples
  49. # [[tool.alembic.post_write_hooks]]
  50. # format using "black" - use the console_scripts runner,
  51. # against the "black" entrypoint
  52. # name = "black"
  53. # type = "console_scripts"
  54. # entrypoint = "black"
  55. # options = "-l 79 REVISION_SCRIPT_FILENAME"
  56. #
  57. # [[tool.alembic.post_write_hooks]]
  58. # lint with attempts to fix using "ruff" - use the module runner, against the "ruff" module
  59. # name = "ruff"
  60. # type = "module"
  61. # module = "ruff"
  62. # options = "check --fix REVISION_SCRIPT_FILENAME"
  63. #
  64. # [[tool.alembic.post_write_hooks]]
  65. # Alternatively, use the exec runner to execute a binary found on your PATH
  66. # name = "ruff"
  67. # type = "exec"
  68. # executable = "ruff"
  69. # options = "check --fix REVISION_SCRIPT_FILENAME"