-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (27 loc) · 758 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (27 loc) · 758 Bytes
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
SHELL = bash
isort = isort inmanta_plugins tests
black_preview = black --preview inmanta_plugins tests
black = black inmanta_plugins tests
flake8 = flake8 inmanta_plugins tests
pyupgrade = pyupgrade --py312-plus $$(find inmanta_plugins tests -type f -name '*.py')
.PHONY: install
install:
uv pip install -U -r requirements.dev.txt -c requirements.txt -e .
.PHONY: format
format:
$(isort)
$(black_preview)
$(black)
$(flake8)
$(pyupgrade)
.PHONY: pep8
pep8:
$(flake8)
RUN_MYPY_PLUGINS=python -m mypy --html-report mypy/out/inmanta_plugins -p inmanta_plugins.podman
.PHONY: mypy
mypy-plugins:
@ echo "Running mypy on the module plugins\n..."
@ $(RUN_MYPY_PLUGINS)
mypy-tests:
@ echo "Running mypy on the module tests\n..."
@ $(RUN_MYPY_TESTS)