Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Alembic's check model parity utility to the linting #199

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ db-migrate-history: ## Show migration history
db-migrate-heads: ## Show migrations marked as a head
$(alembic_cmd) heads $(args)

db-check-model-parity: ## Verify the DB schema matches the DB migrations generated
$(alembic_cmd) check

##################################################
# Testing
##################################################
Expand Down Expand Up @@ -194,7 +197,7 @@ format-check: ## Check file formatting
$(PY_RUN_CMD) isort --atomic --check-only src tests
$(PY_RUN_CMD) black --check src tests

lint: lint-py ## Lint
lint: lint-py db-check-model-parity

lint-py: lint-flake lint-mypy

Expand Down
7 changes: 4 additions & 3 deletions app/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading