-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (38 loc) · 1.17 KB
/
Makefile
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
37
38
39
40
41
42
43
44
45
46
47
48
GLUE_PLUGINS=$(notdir $(wildcard pulp-glue-console/pulp_glue/*))
CLI_PLUGINS=$(notdir $(wildcard pulpcore/cli/*))
info:
@echo Pulp glue
@echo plugins: $(GLUE_PLUGINS)
@echo Pulp CLI
@echo plugins: $(CLI_PLUGINS)
build:
cd pulp-glue-console; pyproject-build -n
pyproject-build -n
black: format
format:
isort .
cd pulp-glue-console; isort .
black .
lint:
find tests .ci -name '*.sh' -print0 | xargs -0 shellcheck -x
isort -c --diff .
cd pulp-glue-console; isort -c --diff .
black --diff --check .
flake8
python3 .ci/scripts/check_cli_dependencies.py
python3 .ci/scripts/check_click_for_mypy.py
MYPYPATH=pulp-glue-console mypy
cd pulp-glue-console; mypy
@echo "🙊 Code 🙈 LGTM 🙉 !"
tests/cli.toml:
cp $@.example $@
@echo "In order to configure the tests to talk to your test server, you might need to edit $@ ."
test: | tests/cli.toml
python3 -m pytest -v tests pulp-glue-console/tests
livetest: | tests/cli.toml
python3 -m pytest -v tests pulp-glue-console/tests -m live
unittest:
python3 -m pytest -v tests pulp-glue-console/tests -m "not live"
unittest_glue:
python3 -m pytest -v pulp-glue-console/tests -m "not live"
.PHONY: build info black lint test