diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -37,6 +37,12 @@ test-only: --cov=vcsserver vcsserver +.PHONY: ruff-check +## run a ruff analysis +ruff-check: + ruff check --ignore F401 --ignore I001 --ignore E402 --ignore E501 --ignore F841 --exclude rhodecode/lib/dbmigrate --exclude .eggs --exclude .dev . + + .PHONY: pip-packages ## Show outdated packages pip-packages: @@ -51,6 +57,7 @@ build: .PHONY: dev-env ## make dev-env based on the requirements files and install develop of packages +## Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y dev-env: pip install build virtualenv pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt @@ -59,7 +66,7 @@ dev-env: .PHONY: dev-srv -## run develop server instance +## run develop server instance, docker exec -it $(docker ps -q --filter 'name=dev-enterprise-ce') /bin/bash dev-srv: pserve --reload .dev/dev.ini @@ -69,6 +76,7 @@ dev-srv: dev-srv-g: gunicorn --workers=4 --paste .dev/dev.ini --bind=0.0.0.0:10010 --config=.dev/gunicorn_config.py + # Default command on calling make .DEFAULT_GOAL := show-help