@@ -81,19 +81,19 @@ test-models: ## Run model tests
8181 source $(VENV_DIR ) /bin/activate && DJANGO_SETTINGS_MODULE=tests.settings python -m pytest tests/test_models.py -v --tb=short --no-cov --disable-warnings
8282
8383# Code quality
84- lint : # # Run linting with flake8
84+ lint : # # Run linting with ruff
8585 @echo " $( BLUE) Running linting checks...$( RESET) "
86- source $(VENV_DIR ) /bin/activate && flake8 || echo " $( YELLOW) flake8 not installed, skipping...$( RESET) "
86+ source $(VENV_DIR ) /bin/activate && ruff check django_postgres_anon tests example_project || echo " $( YELLOW) ruff not installed, skipping...$( RESET) "
8787
88- format : # # Format code with black and isort
88+ format : # # Format code with ruff
8989 @echo " $( BLUE) Formatting code...$( RESET) "
90- source $(VENV_DIR ) /bin/activate && black django_postgres_anon tests example_project --line-length=120 || echo " $( YELLOW) black not installed, skipping...$( RESET) "
91- source $(VENV_DIR ) /bin/activate && isort django_postgres_anon tests example_project --profile=black || echo " $( YELLOW) isort not installed, skipping...$( RESET) "
90+ source $(VENV_DIR ) /bin/activate && ruff check --fix django_postgres_anon tests example_project || echo " $( YELLOW) ruff not installed, skipping...$( RESET) "
91+ source $(VENV_DIR ) /bin/activate && ruff format django_postgres_anon tests example_project || echo " $( YELLOW) ruff not installed, skipping...$( RESET) "
9292
9393format-check : # # Check if code formatting is correct
9494 @echo " $( BLUE) Checking code formatting...$( RESET) "
95- source $(VENV_DIR ) /bin/activate && black -- check django_postgres_anon tests example_project --line-length=120 || echo " $( YELLOW) black not installed, skipping...$( RESET) "
96- source $(VENV_DIR ) /bin/activate && isort --check-only django_postgres_anon tests example_project --profile=black || echo " $( YELLOW) isort not installed, skipping...$( RESET) "
95+ source $(VENV_DIR ) /bin/activate && ruff check django_postgres_anon tests example_project || echo " $( YELLOW) ruff not installed, skipping...$( RESET) "
96+ source $(VENV_DIR ) /bin/activate && ruff format --check django_postgres_anon tests example_project || echo " $( YELLOW) ruff not installed, skipping...$( RESET) "
9797
9898type-check : # # Run type checking with mypy
9999 @echo " $( BLUE) Running type checks...$( RESET) "
0 commit comments