Skip to content

Commit

Permalink
Ignore ID 44715 for safety
Browse files Browse the repository at this point in the history
See this NumPy issue for more information:
numpy/numpy#19038
  • Loading branch information
CasperWA committed Feb 1, 2022
1 parent 4f71132 commit 6e1dabe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ jobs:
- name: Run pylint - tests
run: pylint --rcfile=.pylintrc --extension-pkg-whitelist='pydantic' --disable=C0415,W0621 -- tests

# Ignore ID 44715 for now.
# See this NumPy issue for more information: https://github.com/numpy/numpy/issues/19038
- name: Run safety
run: pip freeze | safety check --stdin
run: pip freeze | safety check --stdin --ignore 44715

docker:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ COPY . .

# Run static security check and linters
RUN pip install -q --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements_dev.txt
# Ignore ID 44715 for now.
# See this NumPy issue for more information: https://github.com/numpy/numpy/issues/19038
RUN pre-commit run --all-files \
&& safety check -r requirements.txt -r requirements_dev.txt
&& safety check -r requirements.txt -r requirements_dev.txt --ignore 44715

# Run pytest with code coverage
RUN pytest --cov app
Expand Down

0 comments on commit 6e1dabe

Please sign in to comment.