Format, lint, and test a Python project.
Section: Language and framework examples
Python targets
makefile
makefile
.PHONY: fmt lint test
fmt:
ruff format .
lint:
ruff check .
test:
pytest -qExplanation
Great entry point for Python apps and libraries.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Language and framework examples
Node.js targets
Lint, test, and build JavaScript or TypeScript projects.
Delegate to gradle or maven
Wrap build tool commands in stable team-facing targets.