Skip to content
Snippets Groups Projects
Makefile 606 B
Newer Older
  • Learn to ignore specific revisions
  • help:
    	@echo "Usage:"
    	@echo "    make help             prints this help."
    
    	@echo "    make lint             run all python linting."
    	@echo "    make sort             run the isort import linter."
    	@echo "    make sort-fix         fix import sort order."
    	@echo "    make style            run the python code style linter."
    
    .PHONY: lint
    lint: sort style
    
    	@echo "Checking imports with isort" && isort --check-only --diff .
    
    
    .PHONY: sort-fix
    sort-fix:
    
    	@echo "Fixing imports with isort" && isort .
    
    	@echo "Checking code style with flake8" && flake8 .