Skip to content

Commit

Permalink
Update pre-commit versions
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey committed Oct 18, 2024
1 parent e0b10dc commit f7d26c3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand Down Expand Up @@ -58,21 +58,22 @@ repos:
hooks:
- id: circleci-config-validate
- repo: https://github.com/ThisIsManta/stylus-supremacy
rev: v2.17.5
rev: v4.0.0
hooks:
- id: stylus-supremacy
language_version: "22.10.0"
args:
- '--options'
- './girder/girder_large_image/web_client/package.json'
- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.18.0
hooks:
- id: pyupgrade
args:
- --py38-plus
- --keep-percent-format
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
rev: v0.7.0
hooks:
- id: ruff
args:
Expand Down
3 changes: 2 additions & 1 deletion docs/format_examples_datastore.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import pooch
from pathlib import Path

import pooch

EXAMPLES_FOLDER = Path('format_examples')

format_examples = [
Expand Down
5 changes: 3 additions & 2 deletions docs/generate_format_table.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import large_image
from pathlib import Path
from format_examples_datastore import EXAMPLES_FOLDER, format_examples, fetch_all

from format_examples_datastore import EXAMPLES_FOLDER, fetch_all, format_examples

import large_image

TABLE_FILE = Path('./format_table.rst')
NO_MULTIFRAME_SOURCES = ['deepzoom', 'openjpeg', 'openslide']
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ lint.select = [
# allow "useless expressions" as it shows output
# allow non-top level imports
# allow long lines
"docs/large_image_examples.ipynb" = ["B018", "E402", "E501"]
"docs/*.ipynb" = ["B018", "E402", "E501"]
"docs/*.py" = ["E501"]

[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ exclude =
*/*egg*/*
# Ignore missing docstring errors.
ignore = D100,D101,D102,D103,D104,D105,D106,D107,D200,D205,D400,D401,E741,W504,B017,C408
per-file-ignores = docs/*.py: E501

[pytest]
addopts = --verbose --strict-markers --showlocals --cov-report="term" --cov-report="xml" --cov-report="html" --cov --ignore test/utils
Expand Down

0 comments on commit f7d26c3

Please sign in to comment.