Skip to content

Commit

Permalink
LNT: Update pre-commit pins & repos
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Dec 29, 2023
1 parent ebf7d88 commit 98da2e0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
18 changes: 12 additions & 6 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
[flake8]
max_line_length = 88
ignore =
E501 # line too long - let black handle that
C408 # Unnecessary dict/list/tuple call - rewrite as a literal
E203 # whitespace before ':' - doesn't work well with black
E225 # missing whitespace around operator - let black worry about that
W503 # line break occurred before a binary operator - let black worry about that
W504 # line break occurred adter a binary operator - let black worry about that
# line too long - let black handle that
E501
# Unnecessary dict/list/tuple call - rewrite as a literal
C408
# whitespace before ':' - doesn't work well with black
E203
# missing whitespace around operator - let black worry about that
E225
# line break occurred before a binary operator - let black worry about that
W503
# line break occurred adter a binary operator - let black worry about that
W504
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
default_language_version:
python: python3.10

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 22.10.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: [rioxarray/, test/, docs/]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
rev: 1.16.0
hooks:
- id: blacken-docs
args: [--skip-errors]
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
rev: 6.1.0
hooks:
- id: flake8

0 comments on commit 98da2e0

Please sign in to comment.