Skip to content

Commit 0e1b0d8

Browse files
repo-review comments (#270)
* 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>
1 parent a897034 commit 0e1b0d8

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
rev: 'v0.0.292'
88
hooks:
99
- id: ruff
10-
args: ["--fix"]
10+
args: ["--fix", "--show-fixes"]
1111

1212
- repo: https://github.com/pre-commit/pre-commit-hooks
1313
rev: v4.4.0
@@ -17,7 +17,7 @@ repos:
1717
- id: end-of-file-fixer
1818
- id: check-docstring-first
1919

20-
- repo: https://github.com/psf/black
20+
- repo: https://github.com/psf/black-pre-commit-mirror
2121
rev: 23.9.1
2222
hooks:
2323
- id: black

.readthedocs.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Read the Docs configuration file
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.11"
10+
sphinx:
11+
configuration: docs/conf.py
12+
13+
python:
14+
install:
15+
- method: pip
16+
path: .
17+
extra_requirements:
18+
- docs

flox/visualize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def _visualize_cohorts(by, cohorts, ax=None):
179179

180180
def visualize_groups_2d(labels, y0=0, **kwargs):
181181
colors = mpl.cm.tab10_r
182-
for i, chunk in enumerate(labels):
182+
for _i, chunk in enumerate(labels):
183183
chunk = np.atleast_2d(chunk)
184184
draw_mesh(
185185
*chunk.shape,

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ requires = [
4141
"numpy_groupies>=0.9.19",
4242
"toolz",
4343
"setuptools>=61.0.0",
44-
"wheel",
4544
"setuptools_scm[toml]>=7.0",
4645
]
4746
build-backend = "setuptools.build_meta"
@@ -77,6 +76,8 @@ ignore = [
7776
"E731",
7877
]
7978
select = [
79+
# Bugbear
80+
# "B",
8081
# Pyflakes
8182
"F",
8283
# Pycodestyle
@@ -127,6 +128,8 @@ ignore_missing_imports = true
127128

128129
[tool.pytest.ini_options]
129130
addopts = "--tb=short"
131+
minversion = "7"
132+
testpaths = ["tests"]
130133

131134

132135
[tool.codespell]

0 commit comments

Comments
 (0)