Skip to content

Commit

Permalink
Merge pull request #407 from ssec/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
ameraner authored Sep 3, 2024
2 parents ccaff91 + 3a1023a commit 8c8ef10
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ exclude: '^$'
fail_fast: false
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.8.0
hooks:
- id: black
language_version: python3
Expand All @@ -14,14 +14,14 @@ repos:
- id: isort
language_version: python3
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
rev: 7.1.1
hooks:
- id: flake8
language_version: python3
additional_dependencies: [flake8-docstrings, flake8-debugger, flake8-bugbear, mccabe]
args: [--max-complexity, "10"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -30,12 +30,12 @@ repos:
# conda-recipes use jinja templating which isn't valid YAML syntax
exclude: conda-recipe\/
- repo: https://github.com/PyCQA/bandit
rev: '1.7.6'
rev: '1.7.9'
hooks:
- id: bandit
args: [--ini, .bandit]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.8.0' # Use the sha / tag you want to point at
rev: 'v1.11.2' # Use the sha / tag you want to point at
hooks:
- id: mypy
additional_dependencies:
Expand Down
6 changes: 3 additions & 3 deletions uwsift/view/layer_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,9 @@ def _update_displayed_resolution(self):
self._details_pane_ui.layerResolutionValue.setText(resolution_str)

def _update_displayed_time(self):
active_product_dataset: Optional[
ProductDataset
] = self._current_selected_layer.get_first_active_product_dataset()
active_product_dataset: Optional[ProductDataset] = (
self._current_selected_layer.get_first_active_product_dataset()
)
if active_product_dataset:
self._details_pane_ui.layerVisibleSchedTimeValue.setText(
self._current_selected_layer.get_first_active_product_dataset().info.get(Info.DISPLAY_TIME)
Expand Down
8 changes: 4 additions & 4 deletions uwsift/view/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,10 @@ def _build_vertex_tiles(self, preferred_stride, tile_box: IndexBox):
# we should have already loaded the texture data in to the GPU so get the index of that texture
tex_tile_idx = self.texture_state[(preferred_stride, tiy, tix)]
factor_rez, offset_rez = self.calc.calc_tile_fraction(tiy, tix, preferred_stride)
tex_coords[
tl * used_tile_idx * 6 : tl * (used_tile_idx + 1) * 6, :
] = self.calc.calc_texture_coordinates(
tex_tile_idx, factor_rez, offset_rez, tessellation_level=TESS_LEVEL
tex_coords[tl * used_tile_idx * 6 : tl * (used_tile_idx + 1) * 6, :] = (
self.calc.calc_texture_coordinates(
tex_tile_idx, factor_rez, offset_rez, tessellation_level=TESS_LEVEL
)
)
vertices[tl * used_tile_idx * 6 : tl * (used_tile_idx + 1) * 6, :] = self.calc.calc_vertex_coordinates(
tiy,
Expand Down

0 comments on commit 8c8ef10

Please sign in to comment.