1. make metrics in commands_typed
    be agnostic of fastapi, django;
  2. implement ping wrapper for rest.py in checks;
  3. use env settings to specify hosts to ping;
  4. add pyright, ruff into Makefile;
  5. test in production;
		
	
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			480 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			480 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
venv_compile:
 | 
						|
	uv pip compile \
 | 
						|
		-p 3.12 \
 | 
						|
		--generate-hashes \
 | 
						|
		-f deps/whl \
 | 
						|
		requirements.in > \
 | 
						|
		requirements.txt
 | 
						|
 | 
						|
venv:
 | 
						|
	uv venv -p 3.12 .venv
 | 
						|
	uv pip install \
 | 
						|
		-p .venv/bin/python3 \
 | 
						|
		-f deps/whl \
 | 
						|
		-r requirements.txt
 | 
						|
 | 
						|
PYRIGHT_CMD ?= --threads 3
 | 
						|
 | 
						|
pyright:
 | 
						|
	.venv/bin/python3 \
 | 
						|
		-m pyright \
 | 
						|
		--pythonpath .venv/bin/python3 \
 | 
						|
		-p pyproject.toml \
 | 
						|
		$(PYRIGHT_CMD) \
 | 
						|
		.
 | 
						|
 | 
						|
RUFF_CMD ?= format
 | 
						|
ruff:
 | 
						|
	.venv/bin/python3 -m ruff --config  pyproject.toml $(RUFF_CMD) .
 |