Skip to content

Commit

Permalink
#184: Add file specific ignore for 'random' usage
Browse files Browse the repository at this point in the history
- S311 (from Bandit) states "Standard pseudo-random generators are not suitable for security/cryptographic purposes.". The generator script doesn't generate data that would be vulnerable to security (no keys or anything of that nature is created using the random library) hence this status code is ignored
  • Loading branch information
MRichards99 committed Nov 3, 2020
1 parent 93e1e3b commit 33193de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ max-complexity = 10
max-line-length = 80
application-import-names = datagateway_api,test,util
import-order-style = google
per-file-ignores = test/*:S101
per-file-ignores = test/*:S101,util/icat_db_generator.py:S311
enable-extensions=G

0 comments on commit 33193de

Please sign in to comment.