Skip to content

Commit 439776c

Browse files
authored
Merge pull request #111 from creativecommons/refine-pre-commit
update pre-commit to use pipenv and drop pre-commit ci
2 parents 7195928 + efd8cfc commit 439776c

2 files changed

Lines changed: 7 additions & 20 deletions

File tree

.github/workflows/static_analysis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Static Analysis
33
on:
44
pull_request:
55
push:
6-
branches: [main]
76
workflow_dispatch:
87

98
jobs:
@@ -18,18 +17,18 @@ jobs:
1817
with:
1918
python-version: '3.11'
2019

21-
- name: Install Python dependencies
20+
- name: Install pipenv
2221
run: |
2322
pip install --upgrade pip
24-
pip install black 'black[jupyter]' flake8 isort
25-
pip install pre-commit
23+
pip install pipenv
2624
2725
# https://github.com/actions/checkout
2826
- name: Checkout quantifying
2927
uses: actions/checkout@v4
30-
with:
31-
path: quantifying
28+
29+
- name: Install Python dependencies
30+
# Install _only_ [dev-packages]
31+
run: pipenv sync --categories dev-packages --system
3232

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

.pre-commit-config.yaml

Lines changed: 1 addition & 13 deletions
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)