From 12ceccff59914ae33160edf4463f3b4bcc09fd79 Mon Sep 17 00:00:00 2001 From: Gal Topper Date: Mon, 8 Jan 2024 12:25:14 +0800 Subject: [PATCH] Add fallback to makefile --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 8a1f3cc0..e8242740 100644 --- a/Makefile +++ b/Makefile @@ -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