Skip to content

Improve makefile and pre-commit - #56

Merged
ryansurf merged 4 commits into
ryansurf:mainfrom
K-dash:improve-makefile-and-precommit
Jul 24, 2024
Merged

Improve makefile and pre-commit#56
ryansurf merged 4 commits into
ryansurf:mainfrom
K-dash:improve-makefile-and-precommit

Conversation

@K-dash

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

Copy link
Copy Markdown
Collaborator

@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

@ryansurf ryansurf left a comment

Copy link
Copy Markdown
Owner

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.

Comment thread CONTRIBUTING.md

Copy link
Copy Markdown
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!

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

.PHONY: clean

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

good addition

Comment thread makefile
.DEFAULT_GOAL := all
sources = src tests

.PHONY: install

Copy link
Copy Markdown
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
@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