Skip to content

Commit 561f463

Browse files
committed
testing workflow
1 parent 3fa7fd8 commit 561f463

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/python-package-shared.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
test-env:
1919
required: true
2020
type: string
21-
fixture-profile:
21+
fixture-profile:
2222
required: true
2323
type: boolean
2424

@@ -36,6 +36,9 @@ jobs:
3636
- name: Linting
3737
working-directory: libs/labelbox
3838
run: rye run lint
39+
- name: Format
40+
working-directory: libs/labelbox
41+
run: rye fmt --check
3942
integration:
4043
runs-on: ubuntu-latest
4144
concurrency:
@@ -78,4 +81,4 @@ jobs:
7881
run: |
7982
rye sync -f --features labelbox/data
8083
rye run unit -n 32
81-
rye run data -n 32
84+
rye run data -n 32

libs/labelbox/pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,16 @@ build-backend = "hatchling.build"
6464
[tool.rye]
6565
managed = true
6666
dev-dependencies = [
67-
"yapf>=0.40.2",
6867
"mypy>=1.9.0",
6968
"types-pillow>=10.2.0.20240311",
7069
"types-python-dateutil>=2.9.0.20240316",
7170
"types-requests>=2.31.0.20240311",
7271
"types-tqdm>=4.66.0.20240106",
7372
]
7473

74+
[tool.ruff]
75+
line-length = 80
76+
7577
[tool.rye.scripts]
7678
unit = "pytest tests/unit"
7779
# https://github.com/Labelbox/labelbox-python/blob/7c84fdffbc14fd1f69d2a6abdcc0087dc557fa4e/Makefile
@@ -87,9 +89,8 @@ unit = "pytest tests/unit"
8789
# LABELBOX_TEST_BASE_URL="http://host.docker.internal:8080" \
8890
integration = { cmd = "pytest tests/integration" }
8991
data = { cmd = "pytest tests/data" }
90-
yapf-lint = "yapf tests src -i --verbose --recursive --parallel --style \"google\""
9192
mypy-lint = "mypy src --pretty --show-error-codes --non-interactive --install-types"
92-
lint = { chain = ["yapf-lint", "mypy-lint"] }
93+
lint = { chain = ["mypy-lint"] }
9394
test = { chain = ["lint", "unit", "integration"] }
9495

9596
[tool.hatch.metadata]

0 commit comments

Comments
 (0)