mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-15 08:23:47 -05:00
build: add poethepoet
This commit is contained in:
21
README.md
21
README.md
@@ -322,6 +322,27 @@ Functions required to allow the script template and alert functions to be used
|
||||
|
||||
I compiled these scripting utilities over many years without having an intention to make them public. As a novice programmer, I have Googled, GitHubbed, and StackExchanged a path to solve my own scripting needs. I often lift a function whole-cloth from a GitHub repo don't keep track of its original location. I have done my best within these files to recreate my footsteps and give credit to the original creators of the code when possible. Unfortunately, I fear that I missed as many as I found. My goal in making this repository public is not to take credit for the code written by others. If you recognize something that I didn't credit, please let me know.
|
||||
|
||||
## Contributing
|
||||
|
||||
### Setup
|
||||
|
||||
1. Install Python 3.11 and [Poetry](https://python-poetry.org)
|
||||
2. Clone this repository. `git clone https://github.com/natelandau/shell-scripting-templates.git`
|
||||
3. Install the Poetry environment with `poetry install`.
|
||||
4. Activate your Poetry environment with `poetry shell`.
|
||||
5. Install the pre-commit hooks with `pre-commit install --install-hooks`.
|
||||
|
||||
### Developing
|
||||
|
||||
- Activate your Poetry environment with `poetry shell`.
|
||||
- This project follows the [Conventional Commits](https://www.conventionalcommits.org/) standard to automate [Semantic Versioning](https://semver.org/) and [Keep A Changelog](https://keepachangelog.com/) with [Commitizen](https://github.com/commitizen-tools/commitizen).
|
||||
- When you're ready to commit changes run `cz c`
|
||||
- Run `poe` from within the development environment to print a list of [Poe the Poet](https://github.com/nat-n/poethepoet) tasks available to run on this project. Common commands:
|
||||
- `poe lint` runs all linters and tests
|
||||
- Run `poetry add {package}` from within the development environment to install a runtime dependency and add it to `pyproject.toml` and `poetry.lock`.
|
||||
- Run `poetry remove {package}` from within the development environment to uninstall a runtime dependency and remove it from `pyproject.toml` and `poetry.lock`.
|
||||
- Run `poetry update` from within the development environment to upgrade all dependencies to the latest versions allowed by `pyproject.toml`.
|
||||
|
||||
## License
|
||||
|
||||
MIT
|
||||
|
||||
Reference in New Issue
Block a user