10
10
desc : Run tests
11
11
cmds :
12
12
- task : go:test-unit
13
+ - task : test-integration
13
14
- task : schema:compile
14
15
15
16
go:generate :
@@ -27,6 +28,12 @@ tasks:
27
28
cmds :
28
29
- go test -short -run '{{ default ".*" .TEST_REGEX }}' {{ default "-v" .GOFLAGS }} -coverprofile=coverage_unit.txt {{ default .DEFAULT_PACKAGES .PACKAGES }}
29
30
31
+ test-integration :
32
+ desc : Run integration tests
33
+ cmds :
34
+ - poetry install --no-root
35
+ - poetry run pytest test
36
+
30
37
schema:compile :
31
38
desc : Compile JSON schema
32
39
cmds :
36
43
desc : Lint and check formatting of all files
37
44
cmds :
38
45
- task : go:check
46
+ - task : python:check
39
47
- task : docs:check
40
48
- task : config:check
41
49
- task : check-spelling
44
52
desc : Lint all files
45
53
cmds :
46
54
- task : go:lint
55
+ - task : python:lint
47
56
- task : docs:lint
48
57
- task : config:lint
49
58
58
67
desc : Format all files
59
68
cmds :
60
69
- task : go:format
70
+ - task : python:format
61
71
- task : docs:format
62
72
- task : config:format
63
73
@@ -88,6 +98,22 @@ tasks:
88
98
cmds :
89
99
- gofmt -l -w {{ default .DEFAULT_PATHS .PATHS }}
90
100
101
+ python:check :
102
+ cmds :
103
+ - task : python:lint
104
+
105
+ python:lint :
106
+ desc : Lint Python code
107
+ cmds :
108
+ - poetry install --no-root
109
+ - poetry run flake8
110
+
111
+ python:format :
112
+ desc : Automatically formats Python files
113
+ cmds :
114
+ - poetry install --no-root
115
+ - poetry run black .
116
+
91
117
docs:check :
92
118
desc : Lint and check formatting of documentation files
93
119
cmds :
0 commit comments