Skip to content

Commit

Permalink
Update pre-commit versions (#43)
Browse files Browse the repository at this point in the history
* Update pre-commit versions

* Update mypy version

* Update pyupgrad
  • Loading branch information
kylebarron authored Apr 17, 2024
1 parent 7152f5e commit 96fe45d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 19 deletions.
17 changes: 8 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v3.15.2
hooks:
- id: pyupgrade
args:
- --py38-plus
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- repo: https://github.com/psf/black
rev: 24.4.0
hooks:
- id: black
language_version: python3
exclude: versioneer.py
args:
- --target-version=py38
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
hooks:
- id: flake8
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.2.0
rev: v1.9.0
hooks:
- id: mypy
# Override default --ignore-missing-imports
Expand All @@ -34,4 +34,3 @@ repos:
- pystac
- azure-data-tables
- pytest

30 changes: 20 additions & 10 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,24 @@
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
exclude = __init__.py,versioneer.py
ignore =
E20, # Extra space in brackets
E231,E241, # Multiple spaces around ","
E26, # Comments
E4, # Import formatting
E721, # Comparing types instead of isinstance
E731, # Assigning lambda expression
E741, # Ambiguous variable names
W503, # line break before binary operator
W504, # line break after binary operator
F811, # redefinition of unused 'loop' from line 10
# Extra space in brackets
E20,
# Multiple spaces around ","
E231,E241,
# Comments
E26,
# Import formatting
E4,
# Comparing types instead of isinstance
E721,
# Assigning lambda expression
E731,
# Ambiguous variable names
E741,
# line break before binary operator
W503,
# line break after binary operator
W504,
# redefinition of unused 'loop' from line 10
F811,
max-line-length = 120
1 change: 1 addition & 0 deletions stac_geoparquet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""stac-geoparquet"""

from .stac_geoparquet import to_geodataframe, to_dict, to_item_collection
from ._version import __version__

Expand Down

0 comments on commit 96fe45d

Please sign in to comment.