diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c36fa38cf..f7e20ea85 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: rev: 'v0.0.292' hooks: - id: ruff - args: ["--fix"] + args: ["--fix", "--show-fixes"] - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 @@ -17,7 +17,7 @@ repos: - id: end-of-file-fixer - id: check-docstring-first - - repo: https://github.com/psf/black + - repo: https://github.com/psf/black-pre-commit-mirror rev: 23.9.1 hooks: - id: black diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 000000000..7e4965745 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,18 @@ +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" +sphinx: + configuration: docs/conf.py + +python: + install: + - method: pip + path: . + extra_requirements: + - docs diff --git a/flox/visualize.py b/flox/visualize.py index 7d44c7d91..17c0a6596 100644 --- a/flox/visualize.py +++ b/flox/visualize.py @@ -179,7 +179,7 @@ def _visualize_cohorts(by, cohorts, ax=None): def visualize_groups_2d(labels, y0=0, **kwargs): colors = mpl.cm.tab10_r - for i, chunk in enumerate(labels): + for _i, chunk in enumerate(labels): chunk = np.atleast_2d(chunk) draw_mesh( *chunk.shape, diff --git a/pyproject.toml b/pyproject.toml index e41fb17eb..83cd04252 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,6 @@ requires = [ "numpy_groupies>=0.9.19", "toolz", "setuptools>=61.0.0", - "wheel", "setuptools_scm[toml]>=7.0", ] build-backend = "setuptools.build_meta" @@ -77,6 +76,8 @@ ignore = [ "E731", ] select = [ + # Bugbear + # "B", # Pyflakes "F", # Pycodestyle @@ -124,6 +125,8 @@ ignore_missing_imports = true [tool.pytest.ini_options] addopts = "--tb=short" +minversion = "7" +testpaths = ["tests"] [tool.codespell]