Skip to content

Commit 98708cc

Browse files
committed
Fix Makefile syntax for MyPy exclude patterns
Simplify the exclude pattern to exclude the entire migrations directory
1 parent 35d5915 commit 98708cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ lint: $(INSTALL_STAMP) dist
5454
$(POETRY) run isort --profile=black --lines-after-imports=2 ./tests/ $(NAME) $(SYNC_NAME)
5555
$(POETRY) run black ./tests/ $(NAME)
5656
$(POETRY) run flake8 --ignore=E231,E501,E712,E731,F401,W503 ./tests/ $(NAME) $(SYNC_NAME)
57-
$(POETRY) run mypy ./tests/ $(NAME) $(SYNC_NAME) --ignore-missing-imports --exclude migrate.py --exclude _compat\.py$ --exclude data_migrator\.py$ --exclude datetime_migration\.py$
57+
$(POETRY) run mypy ./tests/ $(NAME) $(SYNC_NAME) --ignore-missing-imports --exclude migrate.py --exclude _compat\.py$$ --exclude migrations
5858
$(POETRY) run bandit -r $(NAME) $(SYNC_NAME) -s B608
5959

6060
.PHONY: format

0 commit comments

Comments
 (0)