Makefile 475 B

1234567891011121314151617181920212223242526272829303132
  1. .PHONY: format sort lint
  2. # Variables
  3. RUFF_OPTIONS = --line-length 120
  4. ISORT_OPTIONS = --profile black
  5. # Default target
  6. all: format sort lint
  7. # Format code with ruff
  8. format:
  9. poetry run ruff check . --fix $(RUFF_OPTIONS)
  10. # Sort imports with isort
  11. sort:
  12. poetry run isort . $(ISORT_OPTIONS)
  13. # Lint code with ruff
  14. lint:
  15. poetry run ruff check . $(RUFF_OPTIONS)
  16. docs:
  17. cd docs && mintlify dev
  18. build:
  19. poetry build
  20. publish:
  21. poetry publish
  22. clean:
  23. poetry run rm -rf dist