Skip to content

Commit

Permalink
repo-review comments (#270)
Browse files Browse the repository at this point in the history
* repo-review comments

xref #264

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update pyproject.toml

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
dcherian and pre-commit-ci[bot] authored Oct 11, 2023
1 parent a897034 commit 0e1b0d8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
18 changes: 18 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion flox/visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -77,6 +76,8 @@ ignore = [
"E731",
]
select = [
# Bugbear
# "B",
# Pyflakes
"F",
# Pycodestyle
Expand Down Expand Up @@ -127,6 +128,8 @@ ignore_missing_imports = true

[tool.pytest.ini_options]
addopts = "--tb=short"
minversion = "7"
testpaths = ["tests"]


[tool.codespell]
Expand Down

0 comments on commit 0e1b0d8

Please sign in to comment.