Skip to content

Commit 96fe45d

Browse files
authored
Update pre-commit versions (#43)
* Update pre-commit versions * Update mypy version * Update pyupgrad
1 parent 7152f5e commit 96fe45d

File tree

3 files changed

+29
-19
lines changed

3 files changed

+29
-19
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
repos:
22
- repo: https://github.com/asottile/pyupgrade
3-
rev: v2.31.0
3+
rev: v3.15.2
44
hooks:
55
- id: pyupgrade
66
args:
77
- --py38-plus
8-
- repo: https://github.com/psf/black
9-
rev: 22.3.0
10-
hooks:
8+
- repo: https://github.com/psf/black
9+
rev: 24.4.0
10+
hooks:
1111
- id: black
1212
language_version: python3
1313
exclude: versioneer.py
1414
args:
1515
- --target-version=py38
16-
- repo: https://github.com/pycqa/flake8
17-
rev: 3.9.2
18-
hooks:
16+
- repo: https://github.com/pycqa/flake8
17+
rev: 7.0.0
18+
hooks:
1919
- id: flake8
2020
language_version: python3
2121
- repo: https://github.com/pre-commit/mirrors-mypy
22-
rev: v1.2.0
22+
rev: v1.9.0
2323
hooks:
2424
- id: mypy
2525
# Override default --ignore-missing-imports
@@ -34,4 +34,3 @@ repos:
3434
- pystac
3535
- azure-data-tables
3636
- pytest
37-

setup.cfg

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,24 @@
55
# https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
66
exclude = __init__.py,versioneer.py
77
ignore =
8-
E20, # Extra space in brackets
9-
E231,E241, # Multiple spaces around ","
10-
E26, # Comments
11-
E4, # Import formatting
12-
E721, # Comparing types instead of isinstance
13-
E731, # Assigning lambda expression
14-
E741, # Ambiguous variable names
15-
W503, # line break before binary operator
16-
W504, # line break after binary operator
17-
F811, # redefinition of unused 'loop' from line 10
8+
# Extra space in brackets
9+
E20,
10+
# Multiple spaces around ","
11+
E231,E241,
12+
# Comments
13+
E26,
14+
# Import formatting
15+
E4,
16+
# Comparing types instead of isinstance
17+
E721,
18+
# Assigning lambda expression
19+
E731,
20+
# Ambiguous variable names
21+
E741,
22+
# line break before binary operator
23+
W503,
24+
# line break after binary operator
25+
W504,
26+
# redefinition of unused 'loop' from line 10
27+
F811,
1828
max-line-length = 120

stac_geoparquet/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""stac-geoparquet"""
2+
23
from .stac_geoparquet import to_geodataframe, to_dict, to_item_collection
34
from ._version import __version__
45

0 commit comments

Comments
 (0)