Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
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:
Expand Down
14 changes: 11 additions & 3 deletions .pre-commit-config.yaml
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
11 changes: 11 additions & 0 deletions version_increment.sh
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