From dc395fb61ea4594b00406533ad1358a9a472960d Mon Sep 17 00:00:00 2001 From: zeeland Date: Mon, 4 Nov 2024 04:38:34 +0800 Subject: [PATCH] chore: update project version and rename Makefile target - Bump project version to 1.3.6 in pyproject.toml - Rename 'polish-codestyle' target to 'format' in Makefile - Update README.md to reflect the new 'format' target This change streamlines the code formatting process and updates the project version to reflect recent changes. --- pyproject.toml | 2 +- .../Makefile | 10 +++------- .../README.md | 3 --- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 82ff632..32b8601 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "p3g" -version = "1.3.5" +version = "1.3.6" description = "Python Packages Project Generator" readme = "README.md" authors = ["Zeeland "] diff --git a/{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/Makefile b/{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/Makefile index fe8dc4d..7e8d7ce 100644 --- a/{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/Makefile +++ b/{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/Makefile @@ -15,7 +15,7 @@ endif IMAGE := {{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }} VERSION := latest -.PHONY: lock install {% if cookiecutter.install_pre_commit %}pre-commit-install{% endif %} polish-codestyle formatting test check-codestyle lint docker-build docker-remove cleanup help +.PHONY: lock install {% if cookiecutter.install_pre_commit %}pre-commit-install{% endif %} formatting test check-codestyle lint docker-build docker-remove cleanup help lock: poetry lock -n && poetry export --without-hashes > requirements.txt @@ -29,13 +29,10 @@ pre-commit-install: poetry run pre-commit install {%- endif %} -polish-codestyle: +format: poetry run ruff format --config pyproject.toml . poetry run ruff check --fix --config pyproject.toml . -formatting: polish-codestyle -format: polish-codestyle - test: $(TEST_COMMAND) poetry run coverage-badge -o assets/images/coverage.svg -f @@ -84,8 +81,7 @@ help: {%- if cookiecutter.install_pre_commit %} @echo "pre-commit-install Install the pre-commit hooks." {%- endif %} - @echo "polish-codestyle Format the codebase." - @echo "formatting Format the codebase." + @echo "format Format the codebase." @echo "test Run the tests." @echo "check-codestyle Check the codebase for style issues." @echo "lint Run the tests and check the codebase for style issues." diff --git a/{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/README.md b/{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/README.md index 6957ae8..657a9ca 100644 --- a/{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/README.md +++ b/{{ cookiecutter.project_name.lower().replace(' ', '_').replace('-', '_') }}/README.md @@ -81,9 +81,6 @@ make pre-commit-install Automatic formatting uses `ruff`. ```bash -make polish-codestyle - -# or use synonym make format ```