diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0139c2f..67cd181 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: - id: text-unicode-replacement-char - repo: https://github.com/psf/black - rev: 24.8.0 + rev: 24.10.0 hooks: - id: black additional_dependencies: [toml] @@ -43,13 +43,13 @@ repos: additional_dependencies: [toml] - repo: https://github.com/adamchainz/blacken-docs - rev: 1.18.0 + rev: 1.19.1 hooks: - id: blacken-docs additional_dependencies: [black] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.6.9" + rev: "v0.8.6" hooks: - id: ruff args: diff --git a/pyproject.toml b/pyproject.toml index 8f2a857..2112cb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -149,6 +149,11 @@ ignore = [ "ARG001", # unused-function-argument "ARG002", # unused-method-argument + # flake8-commas (COM) + "COM812", # TrailingCommaMissing + "COM818", # TrailingCommaOnBareTupleProhibited + "COM819", # TrailingCommaProhibited + # pydocstyle (D) "D105", # magic-method # don't need docstrings for magic methods "D107", # public-init # docstring is on the class @@ -177,10 +182,8 @@ ignore = [ # flake8-todos (TD) # TODO: fix "TD", - # flake8-commas (COM) - "COM812", # TrailingCommaMissing - "COM818", # TrailingCommaOnBareTupleProhibited - "COM819", # TrailingCommaProhibited + # Ruff + "RUF022", ] [tool.ruff.per-file-ignores] diff --git a/src/stream_mapper/visualization/background/__init__.py b/src/stream_mapper/visualization/background/__init__.py index 9555e3e..2bbfa8e 100644 --- a/src/stream_mapper/visualization/background/__init__.py +++ b/src/stream_mapper/visualization/background/__init__.py @@ -5,4 +5,4 @@ ) from stream_mapper.visualization.background.sloped import sloped_distribution -__all__ = ("sloped_distribution", "exponential_like_distribution") +__all__ = ("exponential_like_distribution", "sloped_distribution")