Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve makefile and pre-commit #56

Merged
merged 4 commits into from
Jul 24, 2024

Conversation

K-dash
Copy link
Collaborator

@K-dash K-dash commented Jul 24, 2024

@ryansurf
I have improved the Makefile and pre-commit configuration.
For details, please refer to the commit message a81f423.

Additionally, I've set up the make install command to build the development environment with a single command, ensuring that pre-commit install is executed reliably(ref #54 (comment)). Along with this modification, I've also updated the content of README.md and CONTRIBUTING.md.
1a8d4bd

I kindly request your review.

K-dash added 4 commits July 24, 2024 15:43
- Add install, format, lint, and clean targets to the Makefile to automate various operations
  - Execute the install target to perform all project setup operations at once, preventing forgotten pre-commit installations
- Modify pre-commit lint/format to reference the local repository and execute lint and format as defined in the Makefile
- Modify HTML coverage report output process to clean up the directory beforehand
- Set the 'all' target as the default for the make command, enabling simultaneous execution of format/lint/test
Add `log_format` to enhance log readability
- Simplify development environment setup steps in CONTRIBUTING.md and add a warning about pre-commit configuration
- Unify the method for installing dependencies and activating the virtual environment in README.md using `make install`
@K-dash K-dash requested a review from ryansurf July 24, 2024 07:21
Copy link
Owner

@ryansurf ryansurf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! The development environment needed to be simplified, the make install command is wonderful.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much more simple for potential contributors, nice!

send_email_docker:
docker compose exec flask poetry run python src/send_email.py

.PHONY: clean
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good addition


.PHONY: install
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This install target is great

@ryansurf ryansurf merged commit 72e5204 into ryansurf:main Jul 24, 2024
2 checks passed
@K-dash K-dash deleted the improve-makefile-and-precommit branch July 26, 2024 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants