File tree 3 files changed +41
-2
lines changed
3 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 50
50
- name : Install dependencies
51
51
run : |
52
52
python -m pip install --upgrade pip
53
- pip install hatch
53
+ pip install hatch pytest pytest-cov
54
54
55
55
- name : Build and lint Widget
56
56
run : |
65
65
hatch fmt --check
66
66
hatch run test:cov
67
67
68
+ - name : Build and test Schema Wrapper
69
+ run : |
70
+ cd packages/schema_wrapper
71
+ pip install -e .
72
+ pytest test/ --cov=schema_wrapper --cov-report=term-missing
73
+
68
74
rust :
69
75
name : Test in Rust
70
76
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [" hatchling" ]
3
+ build-backend = " hatchling.build"
4
+
5
+ [project ]
6
+ name = " schema-wrapper"
7
+ version = " 0.1.0"
8
+ description = " Schema wrapper classes for Mosaic"
9
+ readme = " README.md"
10
+ requires-python = " >=3.9"
11
+
12
+ [tool .hatch .build .targets .wheel ]
13
+ packages = [" ." ] # Changed from "src" to "." since files are in root
14
+
15
+ [tool .pytest .ini_options ]
16
+ testpaths = [" test" ]
17
+ python_files = [" test_*.py" ]
18
+ addopts = " -v"
19
+
20
+ [tool .coverage .run ]
21
+ source = [" ." ]
22
+
23
+ [tool .coverage .report ]
24
+ exclude_lines = [
25
+ " pragma: no cover" ,
26
+ " def __repr__" ,
27
+ " if __name__ == .__main__.:" ,
28
+ " raise NotImplementedError" ,
29
+ ]
30
+
31
+ [tool .ruff ]
32
+ line-length = 88
33
+ target-version = " py39"
Original file line number Diff line number Diff line change 6
6
from pathlib import Path
7
7
import pytest
8
8
9
- from packages . schema_wrapper .generated_classes import (
9
+ from . .generated_classes import (
10
10
AggregateExpression ,
11
11
AggregateTransform ,
12
12
ChannelValue ,
You can’t perform that action at this time.
0 commit comments