@@ -3,29 +3,28 @@ LANGUAGES=de
33GLUE_PLUGINS =$(notdir $(wildcard pulp-glue/pulp_glue/* ) )
44CLI_PLUGINS =$(notdir $(wildcard pulpcore/cli/* ) )
55
6+ .PHONY : info
67info :
78 @echo Pulp glue
89 @echo plugins: $(GLUE_PLUGINS )
910 @echo Pulp CLI
1011 @echo plugins: $(CLI_PLUGINS )
1112
13+ .PHONY : build
1214build :
1315 cd pulp-glue; pyproject-build -n
1416 pyproject-build -n
1517
16- black : format
17-
18+ .PHONY : format
1819format :
19- isort .
20- cd pulp-glue; isort .
21- black .
20+ ruff format
21+ ruff check --fix
2222
23+ .PHONY : lint
2324lint :
2425 find tests .ci -name ' *.sh' -print0 | xargs -0 shellcheck -x
25- isort -c --diff .
26- cd pulp-glue; isort -c --diff .
27- black --diff --check .
28- flake8
26+ ruff format --check --diff
27+ ruff check --diff
2928 .ci/scripts/check_click_for_mypy.py
3029 MYPYPATH=pulp-glue mypy
3130 cd pulp-glue; mypy
@@ -35,21 +34,27 @@ tests/cli.toml:
3534 cp $@ .example $@
3635 @echo " In order to configure the tests to talk to your test server, you might need to edit $@ ."
3736
37+ .PHONY : test
3838test : | tests/cli.toml
3939 python3 -m pytest -v tests pulp-glue/tests cookiecutter/pulp_filter_extension.py
4040
41+ .PHONY : livetest
4142livetest : | tests/cli.toml
4243 python3 -m pytest -v tests pulp-glue/tests -m live
4344
45+ .PHONY : unittest
4446unittest :
4547 python3 -m pytest -v tests pulp-glue/tests cookiecutter/pulp_filter_extension.py -m " not live"
4648
49+ .PHONY : unittest_glue
4750unittest_glue :
4851 python3 -m pytest -v pulp-glue/tests -m " not live"
4952
53+ .PHONY : docs
5054docs :
5155 pulp-docs build
5256
57+ .PHONY : servedocs
5358servedocs :
5459 pulp-docs serve -w CHANGES.md -w pulp-glue/pulp_glue -w pulp_cli/generic.py
5560
@@ -61,6 +66,7 @@ pulpcore/cli/%/locale/messages.pot: pulpcore/cli/%/*.py
6166 xgettext -d $* -o $@ pulpcore/cli/$* /* .py
6267 sed -i ' s/charset=CHARSET/charset=UTF-8/g' $@
6368
69+ .PHONY : extract_messages
6470extract_messages : $(foreach GLUE_PLUGIN,$(GLUE_PLUGINS ) ,pulp-glue/pulp_glue/$(GLUE_PLUGIN ) /locale/messages.pot) $(foreach CLI_PLUGIN,$(CLI_PLUGINS ) ,pulpcore/cli/$(CLI_PLUGIN ) /locale/messages.pot)
6571
6672$(foreach LANGUAGE,$(LANGUAGES ) ,pulp-glue/pulp_glue/% /locale/$(LANGUAGE ) /LC_MESSAGES/messages.po) : pulp-glue/pulp_glue/% /locale/messages.pot
@@ -76,6 +82,7 @@ $(foreach LANGUAGE,$(LANGUAGES),pulpcore/cli/%/locale/$(LANGUAGE)/LC_MESSAGES/me
7682% .mo : % .po
7783 msgfmt -o $@ $<
7884
85+ .PHONY : compile_messages
7986compile_messages : $(foreach LANGUAGE,$(LANGUAGES ) ,$(foreach GLUE_PLUGIN,$(GLUE_PLUGINS ) ,pulp-glue/pulp_glue/$(GLUE_PLUGIN ) /locale/$(LANGUAGE ) /LC_MESSAGES/messages.mo) ) $(foreach LANGUAGE,$(LANGUAGES ) ,$(foreach CLI_PLUGIN,$(CLI_PLUGINS ) ,pulpcore/cli/$(CLI_PLUGIN ) /locale/$(LANGUAGE ) /LC_MESSAGES/messages.mo) )
80- .PHONY : build info black lint test docs servedocs
87+
8188.PRECIOUS : $(foreach LANGUAGE,$(LANGUAGES ) ,$(foreach GLUE_PLUGIN,$(GLUE_PLUGINS ) ,pulp-glue/pulp_glue/$(GLUE_PLUGIN ) /locale/$(LANGUAGE ) /LC_MESSAGES/messages.po) ) $(foreach LANGUAGE,$(LANGUAGES ) ,$(foreach CLI_PLUGIN,$(CLI_PLUGINS ) ,pulpcore/cli/$(CLI_PLUGIN ) /locale/$(LANGUAGE ) /LC_MESSAGES/messages.po) )
0 commit comments