Skip to content

Commit

Permalink
Update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Jan 11, 2024
1 parent 73a5a65 commit 51da6e8
Showing 1 changed file with 71 additions and 13 deletions.
84 changes: 71 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,76 @@
ci:
# autoupdate_schedule: quarterly
autofix_prs: false

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: debug-statements
- id: mixed-line-ending

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
args:
- "--py38-plus"

- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black

- repo: https://github.com/keewis/blackdoc
rev: v0.3.8
hooks:
- id: blackdoc

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

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
hooks:
- id: prettier

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
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: nbstripout
args:
[
"--extra-keys",
"metadata.celltoolbar metadata.kernelspec",
"metadata.language_info.codemirror_mode.version",
"metadata.language_info.pygments_lexer",
"metadata.language_info.version",
"metadata.toc",
"metadata.notify_time",
"metadata.varInspector",
"cell.metadata.heading_collapsed",
"cell.metadata.hidden",
"cell.metadata.code_folding",
"cell.metadata.tags",
"cell.metadata.init_cell",
]

- repo: https://github.com/lorenzwalthert/precommit
rev: v0.3.0
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.0
hooks:
- id: style-files
args: [--style_pkg=styler, --style_fun=tidyverse_style]
- 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 51da6e8

Please sign in to comment.