File tree Expand file tree Collapse file tree 6 files changed +5
-21
lines changed Expand file tree Collapse file tree 6 files changed +5
-21
lines changed Original file line number Diff line number Diff line change 46
46
- run : invoke integration.version
47
47
- run : invoke integration.initialize
48
48
- run : invoke unit.pytest
49
- - run : invoke test.security
50
49
- run : invoke integration.query
51
50
- run : invoke integration.write-policy
52
51
- run : invoke build.uninstall-package
Original file line number Diff line number Diff line change 29
29
- run : invoke integration.version
30
30
- run : invoke integration.initialize
31
31
- run : invoke unit.pytest
32
- - run : invoke test.security
33
32
- run : invoke integration.query
34
33
- run : invoke integration.write-policy
35
34
- run : invoke build.uninstall-package
Original file line number Diff line number Diff line change 63
63
- run : invoke integration.version
64
64
- run : invoke integration.initialize
65
65
- run : invoke unit.pytest
66
- # - run: invoke test.lint
67
- - run : invoke test.security
68
66
- run : invoke integration.query
69
67
- run : invoke integration.write-policy
70
68
- run : invoke build.uninstall-package
Original file line number Diff line number Diff line change 16
16
files : ^policy_sentry/
17
17
- id : ruff-format
18
18
files : ^policy_sentry/
19
+ - repo : https://github.com/Lucas-C/pre-commit-hooks-safety
20
+ rev : v1.3.3
21
+ hooks :
22
+ - id : python-safety-dependencies-check
23
+ files : ^requirements.txt
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ pytest==8.2.2
5
5
coverage == 7.6.0
6
6
# Integration tests and tasks
7
7
invoke == 2.2.0
8
- # Security testing
9
- safety == 3.2.4
10
8
# Type hints
11
9
mypy == 1.10.1
12
10
types-pyyaml == 6.0.12.20240311
Original file line number Diff line number Diff line change @@ -269,20 +269,6 @@ def query_with_yaml(c):
269
269
sys .exit (1 )
270
270
271
271
272
- # TEST - SECURITY
273
- @task
274
- def security_scan (c ):
275
- """Runs `safety check`"""
276
- try :
277
- c .run ("safety check" )
278
- except UnexpectedExit as u_e :
279
- logger .critical (f"FAIL! UnexpectedExit: { u_e } " )
280
- sys .exit (1 )
281
- except Failure as f_e :
282
- logger .critical (f"FAIL: Failure: { f_e } " )
283
- sys .exit (1 )
284
-
285
-
286
272
# TEST - type check
287
273
@task
288
274
def run_mypy (c ):
@@ -336,7 +322,6 @@ def build_docker(c):
336
322
337
323
# test.add_task(run_full_test_suite, 'all')
338
324
test .add_task (run_mypy , "type-check" )
339
- test .add_task (security_scan , "security" )
340
325
341
326
build .add_task (build_package , "build-package" )
342
327
build .add_task (install_package , "install-package" )
You can’t perform that action at this time.
0 commit comments