Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#1022)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/PyCQA/pylint: v3.1.0 → v3.2.3](pylint-dev/pylint@v3.1.0...v3.2.3)

* Lintage for Pylint upgrade.

* Non-pre-commit pylint too old.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Paul Haesler <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and SpacemanPaul authored Jun 12, 2024
1 parent 79b796f commit bca8a8e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
- name: Install dependencies and run pylint
run: |
pip install .[test,dev]
pip install pylint
pylint -j 2 --reports no datacube_ows --disable=C,R,W,E1136
flake8:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
# hooks:
# - id: bandit
- repo: https://github.com/PyCQA/pylint
rev: v3.1.0
rev: v3.2.3
hooks:
- id: pylint
args: ["--disable=C,R,W,E1136"]
2 changes: 2 additions & 0 deletions datacube_ows/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,8 @@ def get_s3_browser_uris(datasets, pt=None, s3url="", s3bucket=""):
if ds.crs != last_crs:
pt_native = pt.to_crs(ds.crs)
last_crs = ds.crs
else:
pt_native = pt
if ds.extent.contains(pt_native):
uris.append(ds.uris)
else:
Expand Down
2 changes: 1 addition & 1 deletion datacube_ows/ogc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def create_geobox(
if width is not None:
scale_x = (float(maxx) - float(minx)) / width
else:
scale_x = -scale_y
scale_x = -scale_y # pylint: disable=possibly-used-before-assignment
width = int(round((float(maxx) - float(minx)) / scale_x))
if height is None:
scale_y = - scale_x
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

dev_requirements = [
'pydevd-pycharm~=221.5921.27', # For Pycharm 2022.1.3
'pylint==2.4.4',
'pylint==3.2.3',
'sphinx_click',
'pre-commit==2.13.0',
'pipdeptree'
Expand Down

0 comments on commit bca8a8e

Please sign in to comment.