Skip to content

Commit

Permalink
peg linter revisions in CI
Browse files Browse the repository at this point in the history
Following manipulation#289.
  • Loading branch information
RussTedrake committed Jan 27, 2024
1 parent 9b10624 commit 91c251e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,19 @@ jobs:
uses: actions/setup-python@v4
- name: black
uses: psf/black@stable
with:
version: 23.12.1
jupyter: true
- name: isort
uses: isort/isort-action@master
with:
configuration: "--profile black"
isort-version: 5.12.0
- name: autoflake
uses: creyD/autoflake_action@master
with:
options: --remove-all-unused-imports --in-place
# Pegging version s.t. https://github.com/creyD/autoflake_action/issues/1
- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 23.12.1 # NOTE: If updating, also update the version in .github/workflows/*
hooks:
- id: black-jupyter
types_or: ["python","jupyter"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.12.0 # NOTE: If updating, also update the version in .github/workflows/*
hooks:
- id: isort
- repo: https://github.com/PyCQA/autoflake
Expand Down

0 comments on commit 91c251e

Please sign in to comment.