##// END OF EJS Templates
makefile: added helpers for code cleanups/builds
super-admin -
r1165:66dcd53d default
parent child Browse files
Show More
@@ -37,6 +37,12 b' test-only:'
37 --cov=vcsserver vcsserver
37 --cov=vcsserver vcsserver
38
38
39
39
40 .PHONY: ruff-check
41 ## run a ruff analysis
42 ruff-check:
43 ruff check --ignore F401 --ignore I001 --ignore E402 --ignore E501 --ignore F841 --exclude rhodecode/lib/dbmigrate --exclude .eggs --exclude .dev .
44
45
40 .PHONY: pip-packages
46 .PHONY: pip-packages
41 ## Show outdated packages
47 ## Show outdated packages
42 pip-packages:
48 pip-packages:
@@ -51,6 +57,7 b' build:'
51
57
52 .PHONY: dev-env
58 .PHONY: dev-env
53 ## make dev-env based on the requirements files and install develop of packages
59 ## make dev-env based on the requirements files and install develop of packages
60 ## Cleanup: pip freeze | grep -v "^-e" | grep -v "@" | xargs pip uninstall -y
54 dev-env:
61 dev-env:
55 pip install build virtualenv
62 pip install build virtualenv
56 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
63 pip wheel --wheel-dir=/home/rhodecode/.cache/pip/wheels -r requirements.txt -r requirements_test.txt -r requirements_debug.txt
@@ -59,7 +66,7 b' dev-env:'
59
66
60
67
61 .PHONY: dev-srv
68 .PHONY: dev-srv
62 ## run develop server instance
69 ## run develop server instance, docker exec -it $(docker ps -q --filter 'name=dev-enterprise-ce') /bin/bash
63 dev-srv:
70 dev-srv:
64 pserve --reload .dev/dev.ini
71 pserve --reload .dev/dev.ini
65
72
@@ -69,6 +76,7 b' dev-srv:'
69 dev-srv-g:
76 dev-srv-g:
70 gunicorn --workers=4 --paste .dev/dev.ini --bind=0.0.0.0:10010 --config=.dev/gunicorn_config.py
77 gunicorn --workers=4 --paste .dev/dev.ini --bind=0.0.0.0:10010 --config=.dev/gunicorn_config.py
71
78
79
72 # Default command on calling make
80 # Default command on calling make
73 .DEFAULT_GOAL := show-help
81 .DEFAULT_GOAL := show-help
74
82
General Comments 0
You need to be logged in to leave comments. Login now