-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
92 lines (72 loc) · 1.71 KB
/
Makefile
File metadata and controls
92 lines (72 loc) · 1.71 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
GLUE_PLUGINS=$(notdir $(wildcard pulp-glue-gem/src/pulp_glue/*))
CLI_PLUGINS=$(notdir $(wildcard src/pulpcore/cli/*))
.PHONY: info
info:
@echo Pulp glue
@echo plugins: $(GLUE_PLUGINS)
@echo Pulp CLI
@echo plugins: $(CLI_PLUGINS)
.PHONY: build
build:
uv build --all
.PHONY: _format
_format:
ruff format
ruff check --select I --fix
.PHONY: format
format:
uv run --isolated --group lint $(MAKE) _format
.PHONY: _autofix
_autofix:
ruff check --fix
.PHONY: autofix
autofix:
uv lock
uv run --isolated --group lint $(MAKE) _autofix
.PHONY: _lint
_lint:
find tests .ci -name '*.sh' -print0 | xargs -0 shellcheck -x
ruff format --check --diff
ruff check
.ci/scripts/check_cli_dependencies.py
.ci/scripts/check_click_for_mypy.py
mypy
cd pulp-glue-gem; mypy
@echo "🙊 Code 🙈 LGTM 🙉 !"
.PHONY: lint
lint:
uv lock --check
uv run --isolated --group lint $(MAKE) _lint
tests/cli.toml:
cp $@.example $@
@echo "In order to configure the tests to talk to your test server, you might need to edit $@ ."
.PHONY: _test
_test: | tests/cli.toml
pytest -v tests pulp-glue-gem/tests
.PHONY: test
test:
uv run $(MAKE) _test
.PHONY: _livetest
_livetest: | tests/cli.toml
pytest -v tests pulp-glue-gem/tests -m live
.PHONY: livetest
livetest:
uv run $(MAKE) _livetest
.PHONY: _paralleltest
_paralleltest: | tests/cli.toml
pytest -v tests pulp-glue-gem/tests -m live -n 8
.PHONY: paralleltest
paralleltest:
uv run $(MAKE) _paralleltest
.PHONY: _unittest
_unittest:
pytest -v tests pulp-glue-gem/tests -m "not live"
.PHONY: unittest
unittest:
uv run $(MAKE) _unittest
.PHONY: _unittest_glue
_unittest_glue:
pytest -v pulp-glue-gem/tests -m "not live"
.PHONY: unittest_glue
unittest_glue:
uv run $(MAKE) _unittest_glue