@@ -82,12 +82,19 @@ make to - Shorthand -> test-ocr
8282make test-imgg - Run unit tests only for imgg (with prints)
8383make test-g - Shorthand -> test-imgg
8484
85+ make check-unused-imports - Check for unused imports without fixing
86+ make fix-unused-imports - Fix unused imports with ruff
87+ make fui - Shorthand -> fix-unused-imports
88+ make check-TODOs - Check for TODOs
89+
90+ make docs - Serve documentation with mkdocs
91+ make docs-check - Check documentation build with mkdocs
92+ make docs-deploy - Deploy documentation with mkdocs
93+
8594make check - Shorthand -> format lint mypy
8695make c - Shorthand -> check
8796make cc - Shorthand -> cleanderived check
8897make li - Shorthand -> lock install
89- make check-unused-imports - Check for unused imports without fixing
90- make fix-unused-imports - Fix unused imports with ruff
9198
9299endef
93100export HELP
@@ -101,7 +108,7 @@ export HELP
101108 run-all-tests run-manual-trigger-gha-tests run-gha_disabled-tests \
102109 validate v check c cc \
103110 merge-check-ruff-lint merge-check-ruff-format merge-check-mypy merge-check-pyright \
104- li check-unused-imports fix-unused-imports check-uv check-TODOs doc doc -check
111+ li check-unused-imports fix-unused-imports check-uv check-TODOs docs docs -check docs-deploy
105112
106113all help :
107114 @echo " $$ HELP"
@@ -390,45 +397,59 @@ merge-check-mypy: env
390397 $(VENV_MYPY ) --config-file pyproject.toml
391398
392399# #########################################################################################
393- # ## SHORTHANDS
400+ # ## MISCELLANEOUS
394401# #########################################################################################
395402
396403check-unused-imports : env
397404 $(call PRINT_TITLE,"Checking for unused imports without fixing")
398405 $(VENV_RUFF ) check --select=F401 --no-fix .
399406
400- c : init format lint pyright mypy
401- @echo " > done: c = check"
402-
403- cc : init cleanderived c
404- @echo " > done: cc = init cleanderived init format lint pyright mypy"
405-
406- check : cc check-unused-imports
407- @echo " > done: check"
408-
409- v : init validate
410- @echo " > done: v = validate"
407+ fix-unused-imports : env
408+ $(call PRINT_TITLE,"Fixing unused imports")
409+ $(VENV_RUFF ) check --select=F401 --fix .
411410
412- li : lock install
413- @echo " > done: lock install "
411+ fui : fix-unused-imports
412+ @echo " > done: fui = fix-unused-imports "
414413
415414check-TODOs : env
416415 $(call PRINT_TITLE,"Checking for TODOs")
417- $(VENV_RUFF ) check --select=TD .
416+ @ $(VENV_RUFF ) check --select=TD -v .
418417
419- fix-unused-imports : env
420- $( call PRINT_TITLE,"Fixing unused imports")
421- $( VENV_RUFF ) check --select=F401 --fix .
418+ # #########################################################################################
419+ # ## DOCUMENTATION
420+ # #########################################################################################
422421
423- doc : env
422+ docs : env
424423 $(call PRINT_TITLE,"Serving documentation with mkdocs")
425424 $(VENV_MKDOCS ) serve
426425
427- doc -check : env
426+ docs -check : env
428427 $(call PRINT_TITLE,"Checking documentation build with mkdocs")
429428 $(VENV_MKDOCS ) build --strict
430429
431- doc -deploy : env
430+ docs -deploy : env
432431 $(call PRINT_TITLE,"Deploying documentation with mkdocs")
433432 $(VENV_MKDOCS ) gh-deploy --force --clean
434-
433+
434+ # #########################################################################################
435+ # ## SHORTHANDS
436+ # #########################################################################################
437+
438+ check-unused-imports : env
439+ $(call PRINT_TITLE,"Checking for unused imports without fixing")
440+ $(VENV_RUFF ) check --select=F401 --no-fix .
441+
442+ c : init format lint pyright mypy
443+ @echo " > done: c = check"
444+
445+ cc : init cleanderived c
446+ @echo " > done: cc = init cleanderived init format lint pyright mypy"
447+
448+ check : cc check-unused-imports
449+ @echo " > done: check"
450+
451+ v : init validate
452+ @echo " > done: v = validate"
453+
454+ li : lock install
455+ @echo " > done: lock install"
0 commit comments