Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Install Python tools
run: |
pip install black==22.10.0 flake8==5.0.4 isort==5.11.5
pip install black==26.5.1 flake8==7.3.0 isort==5.11.5

- name: Run black
run: black --check .
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 26.5.1
hooks:
- id: black
files: '^.*\.py'
Expand Down
6 changes: 3 additions & 3 deletions contributing/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
black==22.10.0
flake8==5.0.4
isort==5.10.1
black==26.5.1
flake8==7.3.0
isort==5.11.5
pre-commit==2.20.0
pytest==7.2.0
pytest-dotenv==0.5.2
5 changes: 4 additions & 1 deletion fastlabel/utils/mask_image_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def __detect_segmentation_list(
segmentation_list.append(segmentation)

for separate_place_hierarchy_index in separate_place_hierarchy_indexes:
(segmentation, _,) = __detect_segmentation(
(
segmentation,
_,
) = __detect_segmentation(
separate_place_hierarchy_index, hierarchy, contours
)
segmentation_list.append(segmentation)
Expand Down
1 change: 1 addition & 0 deletions tests/test_lerobot_v3_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
check_dependencies so that pandas/pyarrow major-version bumps surface
breakage in CI.
"""

import pytest

pd = pytest.importorskip("pandas")
Expand Down
1 change: 1 addition & 0 deletions tests/test_pillow_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
save, ImageDraw, and ImageColor calls inside fastlabel/__init__.py so that
Pillow major-version bumps surface API breakage in CI.
"""

import os

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tests/test_workspace_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
endpoint, query params and payload. The HTTP layer (client.api.*_request) is
stubbed so no real request is made.
"""

import pytest

import fastlabel
Expand Down
Loading