Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#488)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/asottile/pyupgrade: v3.14.0 →
v3.15.0](asottile/pyupgrade@v3.14.0...v3.15.0)
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 →
v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0)
- [github.com/psf/black: 23.9.1 →
23.10.1](psf/black@23.9.1...23.10.1)
- [github.com/keewis/blackdoc: v0.3.8 →
v0.3.9](keewis/blackdoc@v0.3.8...v0.3.9)
- [github.com/python-jsonschema/check-jsonschema: 0.27.0 →
0.27.1](python-jsonschema/check-jsonschema@0.27.0...0.27.1)
<!--pre-commit.ci end-->
  • Loading branch information
Zeitsperre authored Nov 6, 2023
2 parents 346e2fa + 28d41a0 commit a07959b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ default_language_version:

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.14.0
rev: v3.15.0
hooks:
- id: pyupgrade
args: [ '--py38-plus' ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: setup.cfg
Expand All @@ -31,7 +31,7 @@ repos:
- id: python-check-blanket-noqa
- id: rst-inline-touching-normal
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.10.1
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand Down Expand Up @@ -59,7 +59,7 @@ repos:
- id: pydocstyle
args: [ '--convention=numpy', '--match="(?!test_).*\.py"' ]
- repo: https://github.com/keewis/blackdoc
rev: v0.3.8
rev: v0.3.9
hooks:
- id: blackdoc
additional_dependencies: [ 'black==23.9.1' ]
Expand All @@ -69,7 +69,7 @@ repos:
- id: yamllint
args: [ '--config-file=.yamllint.yaml' ]
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.0
rev: 0.27.1
hooks:
- id: check-github-workflows
- id: check-readthedocs
Expand Down
2 changes: 1 addition & 1 deletion raven/processes/wps_nalcms_zonal_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _handler(self, request, response):

land_use = list()
for stat in stats:
lu = defaultdict(lambda: 0)
lu = defaultdict(int)
prop = stat["properties"]

# Rename/aggregate land-use categories
Expand Down
2 changes: 1 addition & 1 deletion raven/processes/wps_nalcms_zonal_stats_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _handler(self, request, response):

land_use = list()
for stat in stats:
lu = defaultdict(lambda: 0)
lu = defaultdict(int)
prop = stat["properties"]

# Rename/aggregate land-use categories
Expand Down

0 comments on commit a07959b

Please sign in to comment.