File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 18
18
test-env :
19
19
required : true
20
20
type : string
21
- fixture-profile :
21
+ fixture-profile :
22
22
required : true
23
23
type : boolean
24
24
36
36
- name : Linting
37
37
working-directory : libs/labelbox
38
38
run : rye run lint
39
+ - name : Format
40
+ working-directory : libs/labelbox
41
+ run : rye fmt --check
39
42
integration :
40
43
runs-on : ubuntu-latest
41
44
concurrency :
78
81
run : |
79
82
rye sync -f --features labelbox/data
80
83
rye run unit -n 32
81
- rye run data -n 32
84
+ rye run data -n 32
Original file line number Diff line number Diff line change @@ -64,14 +64,16 @@ build-backend = "hatchling.build"
64
64
[tool .rye ]
65
65
managed = true
66
66
dev-dependencies = [
67
- " yapf>=0.40.2" ,
68
67
" mypy>=1.9.0" ,
69
68
" types-pillow>=10.2.0.20240311" ,
70
69
" types-python-dateutil>=2.9.0.20240316" ,
71
70
" types-requests>=2.31.0.20240311" ,
72
71
" types-tqdm>=4.66.0.20240106" ,
73
72
]
74
73
74
+ [tool .ruff ]
75
+ line-length = 80
76
+
75
77
[tool .rye .scripts ]
76
78
unit = " pytest tests/unit"
77
79
# https://github.com/Labelbox/labelbox-python/blob/7c84fdffbc14fd1f69d2a6abdcc0087dc557fa4e/Makefile
@@ -87,9 +89,8 @@ unit = "pytest tests/unit"
87
89
# LABELBOX_TEST_BASE_URL="http://host.docker.internal:8080" \
88
90
integration = { cmd = " pytest tests/integration" }
89
91
data = { cmd = " pytest tests/data" }
90
- yapf-lint = " yapf tests src -i --verbose --recursive --parallel --style \" google\" "
91
92
mypy-lint = " mypy src --pretty --show-error-codes --non-interactive --install-types"
92
- lint = { chain = [" yapf-lint " , " mypy-lint" ] }
93
+ lint = { chain = [" mypy-lint" ] }
93
94
test = { chain = [" lint" , " unit" , " integration" ] }
94
95
95
96
[tool .hatch .metadata ]
You can’t perform that action at this time.
0 commit comments