Add noqa comment to ignore complexity of DumpSecrets.dump()

This commit is contained in:
Shreya 2021-02-22 17:30:11 +05:30
parent 6883e4a5f1
commit b82635d292
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ script:
## Display the linter issues
- cat ./ci_scripts/flake8_warnings.txt
## Make sure that we haven't increased the amount of warnings.
- PYTHON_WARNINGS_AMOUNT_UPPER_LIMIT=81
- PYTHON_WARNINGS_AMOUNT_UPPER_LIMIT=80
- if [ $(tail -n 1 ./ci_scripts/flake8_warnings.txt) -gt $PYTHON_WARNINGS_AMOUNT_UPPER_LIMIT ]; then echo "Too many python linter warnings! Failing this build. Lower the amount of linter errors in this and try again. " && exit 1; fi
## Check import order

View File

@ -105,7 +105,7 @@ class DumpSecrets:
self.__nthash,
)
def dump(self):
def dump(self): # noqa: C901
with StdoutCapture() as output_captor:
dumped_secrets = ""