Skip to content

Commit

Permalink
Update pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Jan 11, 2024
1 parent f452250 commit eba1587
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 50 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,3 @@ jobs:
name: Running Tests
run: |
for nb in **/*.ipynb; do echo $nb; time jupyter nbconvert --to notebook --execute $nb; done
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
- uses: pre-commit/[email protected]
2 changes: 0 additions & 2 deletions .isort.cfg

This file was deleted.

75 changes: 34 additions & 41 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,62 +1,55 @@
ci:
# autoupdate_schedule: quarterly
autofix_prs: false

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: pretty-format-json
args: ['--autofix', '--indent=2', '--no-sort-keys']
- id: debug-statements
- id: mixed-line-ending

- repo: https://github.com/ambv/black
rev: 20.8b1
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: black
args: ['--line-length', '100']
- id: pyupgrade
args:
- '--py38-plus'

- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: flake8
- id: black

- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.6.4
- repo: https://github.com/keewis/blackdoc
rev: v0.3.8
hooks:
- id: isort
- id: blackdoc

- repo: https://github.com/deathbeds/prenotebook
rev: f5bdb72a400f1a56fe88109936c83aa12cc349fa
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.260'
hooks:
- id: prenotebook
- id: ruff
args: ['--fix']

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
rev: v3.0.0-alpha.6
hooks:
- id: prettier
files: "\\.(\
css|less|scss\
|graphql|gql\
|html\
|js|jsx\
|json\
|ts|tsx\
|vue\
|yaml|yml\
)$"

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.2.1
hooks:
- id: prettier
name: prettier-markdown
entry: prettier --write --parser mdx
files: "\\.(\
|md|markdown|mdown|mkdn\
|mdx\
)$"
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: nbqa-ruff
args: ['--fix']
- id: nbqa-isort
args: ['--profile=black']
additional_dependencies: [isort==5.6.4]
- id: nbqa-black
- id: nbqa-pyupgrade
args: ['--py37-plus']

0 comments on commit eba1587

Please sign in to comment.