@@ -18,31 +18,28 @@ install: ## install library
1818.PHONY : lint lints fix format
1919
2020lint : # # run python linter with ruff
21- python -m isort python_template setup.py -- check
22- python -m ruff python_template setup.py
21+ python -m ruff check python_template
22+ python -m ruff format --check python_template
2323
2424# Alias
2525lints : lint
2626
2727fix : # # fix python formatting with ruff
28- python -m isort python_template setup.py
29- python -m ruff format python_template setup.py
28+ python -m ruff check --fix python_template
29+ python -m ruff format python_template
3030
3131# alias
3232format : fix
3333
3434# ###############
3535# Other Checks #
3636# ###############
37- .PHONY : check-manifest semgrep checks check annotate
37+ .PHONY : check-manifest checks check annotate
3838
3939check-manifest : # # check python sdist manifest with check-manifest
4040 check-manifest -v
4141
42- semgrep : # # check for possible errors with semgrep
43- semgrep ci --config auto
44-
45- checks : check-manifest semgrep
42+ checks : check-manifest
4643
4744# Alias
4845check : checks
@@ -59,38 +56,27 @@ test: ## run python tests
5956 python -m pytest -v python_template/tests --junitxml=junit.xml
6057
6158coverage : # # run tests and collect test coverage
62- python -m pytest -v python_template/tests --junitxml=junit.xml --cov=python_template --cov-branch --cov-fail-under=75 --cov-report term-missing --cov-report xml
59+ python -m pytest -v python_template/tests --junitxml=junit.xml --cov=python_template --cov-branch --cov-fail-under=50 --cov-report term-missing --cov-report xml
6360
6461# Alias
6562tests : test
6663
67- # #######
68- # DOCS #
69- # #######
70- .PHONY : docs show-docs
71-
72- docs : # # build html documentation
73- make -C ./docs html
74-
75- show-docs : # # show docs with running webserver
76- cd ./docs/_build/html/ && PYTHONBUFFERED=1 python -m http.server | sec -u " s/0\.0\.0\.0/$$ (hostname)/g"
77-
7864# ##########
7965# VERSION #
8066# ##########
8167.PHONY : show-version patch minor major
8268
8369show-version : # # show current library version
84- bump2version --dry-run --allow-dirty setup.py --list | grep current | awk -F= ' {print $2} '
70+ @bump-my-version show current_version
8571
8672patch : # # bump a patch version
87- bump2version patch
73+ @bump-my-version bump patch
8874
8975minor : # # bump a minor version
90- bump2version minor
76+ @bump-my-version bump minor
9177
9278major : # # bump a major version
93- bump2version major
79+ @bump-my-version bump major
9480
9581# #######
9682# DIST #
0 commit comments