Skip to content

Commit

Permalink
Add fallback to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gtopper committed Jan 8, 2024
1 parent ef13cf4 commit 12ceccf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ all:
# We only want to format and lint checked in python files
CHECKED_IN_PYTHON_FILES := $(shell git ls-files | grep '\.py$$')

# Fallback
ifeq ($(CHECKED_IN_PYTHON_FILES),)
CHECKED_IN_PYTHON_FILES := .
endif

FLAKE8_OPTIONS := --max-line-length 120 --extend-ignore E203,W503
BLACK_OPTIONS := --line-length 120
ISORT_OPTIONS := --profile black
Expand Down

0 comments on commit 12ceccf

Please sign in to comment.