Skip to content

Commit

Permalink
Add req and hooks for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodrigo Almeida committed Jun 30, 2022
1 parent dbeb367 commit e52fd1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 8 additions & 5 deletions alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,13 @@ version_path_separator = os # Use os.pathsep. Default configuration used for ne
# detail and examples

# format using "black" - use the console_scripts runner, against the "black" entrypoint
# hooks = black
# black.type = console_scripts
# black.entrypoint = black
# black.options = -l 79 REVISION_SCRIPT_FILENAME
hooks = black, isort
black.type = console_scripts
black.entrypoint = black

isort.type = console_scripts
isort.entrypoint = isort
isort.options = --profile black

# Logging configuration
[loggers]
Expand Down Expand Up @@ -99,4 +102,4 @@ formatter = generic

[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S
datefmt = %H:%M:%S
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ shapely
google-cloud-storage
grpcio<=1.43.0
alembic
psycopg2-binary
psycopg2-binary
GeoAlchemy2

0 comments on commit e52fd1e

Please sign in to comment.