-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 1.03 KB
/
Copy pathMakefile
File metadata and controls
36 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Makefile for CodeJail
.PHONY: clean dev-requirements quality requirements test test_no_proxy \
test_proxy upgrade upgrade
clean:
find src/codejail -name '*.pyc' -exec rm -f {} +
find src/codejail -name '*.pyo' -exec rm -f {} +
find src/codejail -name '__pycache__' -exec rm -rf {} +
test: test_no_proxy test_proxy
test_no_proxy:
@echo "Running all tests with no proxy process"
CODEJAIL_PROXY=0 pytest --junitxml=reports/pytest-no-proxy.xml --log-level=DEBUG
test_proxy:
@echo "Running all tests with proxy process"
CODEJAIL_PROXY=1 pytest --junitxml=reports/pytest-proxy.xml --log-level=DEBUG
upgrade: ## update python dependencies
uv run --with edx-lint edx_lint write_uv_constraints pyproject.toml
uv lock --upgrade
quality: ## check coding style with pycodestyle and pylint
pycodestyle src/codejail *.py
isort --check-only --diff src/codejail *.py
pylint src/codejail *.py
isort: ## apply automatic import sorting
isort --recursive src/codejail *.py
requirements: dev-requirements
dev-requirements:
uv sync --group dev