-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: .pre-commit config + version increment shell script added
- Loading branch information
1 parent
ac7f8ac
commit b831fe8
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Code Coverage | ||
name: Tests and Pre-build | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: [] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.4.0 | ||
hooks: [] | ||
|
||
# - repo: local | ||
# hooks: | ||
# - id: version-increment | ||
# name: version-increment | ||
# entry: ./version_increment.sh | ||
# language: script | ||
# always_run: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
read -p "Increment Patch Version'? (s/N): " response | ||
|
||
if [[ "$response" =~ ^([sS][iI][mM]|[sS])$ ]]; then | ||
poetry version patch | ||
git add pyproject.toml | ||
echo "Incremented Version and pyproject.toml added for commit." | ||
else | ||
echo "Version not incremented." | ||
fi |