Skip to content

Commit d5bef20

Browse files
committed
update pre-commit to use pipenv and drop pre-commit ci
1 parent 7195928 commit d5bef20

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

.github/workflows/static_analysis.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ jobs:
1818
with:
1919
python-version: '3.11'
2020

21-
- name: Install Python dependencies
21+
- name: Install pipenv
2222
run: |
2323
pip install --upgrade pip
24-
pip install black 'black[jupyter]' flake8 isort
25-
pip install pre-commit
24+
pip install pipenv
2625
2726
# https://github.com/actions/checkout
2827
- name: Checkout quantifying
2928
uses: actions/checkout@v4
30-
with:
31-
path: quantifying
29+
30+
- name: Install Python dependencies
31+
# Install _only_ [dev-packages]
32+
run: pipenv sync --categories dev-packages --system
3233

3334
- name: pre-commit
3435
run: pre-commit run --show-diff-on-failure --color=always --all-files
35-
working-directory: ./quantifying

.pre-commit-config.yaml

+1-13
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,10 @@
33
default_language_version:
44
python: python3.11
55

6-
ci:
7-
autofix_commit_msg: |
8-
[pre-commit.ci] auto fixes from pre-commit.com hooks
9-
10-
for more information, see https://pre-commit.ci
11-
autofix_prs: true
12-
autoupdate_branch: ''
13-
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
14-
autoupdate_schedule: weekly
15-
skip: []
16-
submodules: false
17-
186
repos:
197

208
- repo: https://github.com/pre-commit/pre-commit-hooks
21-
rev: v4.1.0
9+
rev: v4.6.0
2210
hooks:
2311
- id: check-added-large-files
2412
- id: check-ast

0 commit comments

Comments
 (0)