Makefile 194 B

123456789
  1. file_finder = find . -type f $(1) -not -path './venv/*'
  2. PY_FILES = $(call file_finder,-name "*.py")
  3. format:
  4. $(PY_FILES) | xargs black
  5. check_format:
  6. $(PY_FILES) | xargs black --diff --check