Skip to content

Commit f40e368

Browse files
authored
Add a pre-commit CI workflow (#28)
* add pre-commit workflow * update changelog
1 parent f095757 commit f40e368

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main, develop]
7+
8+
jobs:
9+
pre-commit:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v5
13+
- name: Set up Python
14+
uses: actions/setup-python@v6
15+
with:
16+
python-version: "3.13"
17+
- name: Run pre-commit
18+
uses: pre-commit/action@v3.0.1

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
- Updates the COWER example for the 2025 reporting cycle.
88
- Removes `library/base_2022` in favor of a `libray/base` for base assumptions and scenarios that
99
can be updated annually as needed.
10+
- A pre-commit workflow is added to be run against PRs into the main and develop branches to ensure
11+
code quality checks are passed.
1012

1113
## v0.6.1 - 17 October 2025
1214

0 commit comments

Comments
 (0)