Skip to content

Commit cf094f8

Browse files
committed
Add cargo jobs to tox
1 parent 51356e4 commit cf094f8

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

tox.ini

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ package = wheel
1313
wheel_build_env = .pkg
1414
# for extra deps
1515
# extras =
16+
allowlist_externals = cargo
1617
deps =
1718
pytest
1819
pyyaml
@@ -34,14 +35,18 @@ deps =
3435
labels = check
3536
package = skip
3637
deps = ruff
37-
commands = ruff check {posargs}
38+
commands =
39+
cargo clippy --manifest-path ua-parser-rs/Cargo.toml {posargs}
40+
ruff check {posargs}
3841

3942
[testenv:format]
4043
description = Runs the formatter (just showing errors by default)
4144
labels = check
4245
package = skip
4346
deps = ruff
44-
commands = ruff format {posargs:--diff}
47+
commands =
48+
cargo fmt --manifest-path ua-parser-rs/Cargo.toml {posargs:--check}
49+
ruff format {posargs:--diff}
4550

4651
[testenv:typecheck]
4752
labels = check
@@ -51,7 +56,9 @@ deps =
5156
types-PyYaml
5257
./ua-parser-rs
5358
./ua-parser-builtins
54-
commands = mypy {posargs}
59+
commands =
60+
cargo check --manifest-path ua-parser-rs/Cargo.toml
61+
mypy {posargs}
5562

5663
[testenv:docs]
5764
description = Builds the documentation

0 commit comments

Comments
 (0)