Skip to content

Commit

Permalink
update pre-commit to use pipenv and drop pre-commit ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TimidRobot committed Apr 8, 2024
1 parent 7195928 commit d5bef20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ jobs:
with:
python-version: '3.11'

- name: Install Python dependencies
- name: Install pipenv
run: |
pip install --upgrade pip
pip install black 'black[jupyter]' flake8 isort
pip install pre-commit
pip install pipenv
# https://github.com/actions/checkout
- name: Checkout quantifying
uses: actions/checkout@v4
with:
path: quantifying

- name: Install Python dependencies
# Install _only_ [dev-packages]
run: pipenv sync --categories dev-packages --system

- name: pre-commit
run: pre-commit run --show-diff-on-failure --color=always --all-files
working-directory: ./quantifying
14 changes: 1 addition & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,10 @@
default_language_version:
python: python3.11

ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: []
submodules: false

repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.6.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down

0 comments on commit d5bef20

Please sign in to comment.