From 28e2e4634da468979436d0ff9c401aa8070b7d5b Mon Sep 17 00:00:00 2001 From: patricktnast <130876799+patricktnast@users.noreply.github.com> Date: Mon, 13 Jan 2025 10:30:19 -0800 Subject: [PATCH] Add format to makefile (#393) * Add format to makefile * Update Makefile isort before black --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 93662c74..89e09b60 100644 --- a/Makefile +++ b/Makefile @@ -84,6 +84,11 @@ install: # Install setuptools, install this package in editable mode # Then, assuming the build passes, you can change it back (which will cause builds to # start failing again until everything gets merged to main). +format: setup.py pyproject.toml $(MAKE_SOURCES) # Run the code formatter and import sorter + isort $(LOCATIONS) + black $(LOCATIONS) + @echo "Ignore, Created by Makefile, `date`" > $@ + e2e-runslow: $(MAKE_SOURCES) # Run all (--runslow) end-to-end tests export COVERAGE_FILE=./output/.coverage.e2e pytest tests/e2e -vvv --runslow --cov --cov-report term --cov-report html:./output/htmlcov_e2e