Skip to content

Commit f26bc10

Browse files
committed
Add pre-commit workflow for automated checks
- Introduced a GitHub Actions workflow to run pre-commit hooks on pull requests and pushes to main and develop branches. - Set up Python 3.9 environment and installed development dependencies. - Configured pre-commit action to ensure code quality and consistency.
1 parent 976fedc commit f26bc10

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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@v4
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: '3.9'
18+
cache: pip
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -e .[dev]
24+
25+
- name: Run pre-commit
26+
uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)