Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

safety check is done successfully but exit code is 255 #360

Closed
minyoung90 opened this issue Dec 24, 2021 · 2 comments
Closed

safety check is done successfully but exit code is 255 #360

minyoung90 opened this issue Dec 24, 2021 · 2 comments

Comments

@minyoung90
Copy link

minyoung90 commented Dec 24, 2021

  • safety version: 1.10.3
  • Python version: 3.9
  • Operating System: ubuntu 20.04

Description

I ran this command

> safety check
+==============================================================================+
|                                                                              |
|                               /$$$$$$            /$$                         |
|                              /$$__  $$          | $$                         |
|           /$$$$$$$  /$$$$$$ | $$  \__//$$$$$$  /$$$$$$   /$$   /$$           |
|          /$$_____/ |____  $$| $$$$   /$$__  $$|_  $$_/  | $$  | $$           |
|         |  $$$$$$   /$$$$$$$| $$_/  | $$$$$$$$  | $$    | $$  | $$           |
|          \____  $$ /$$__  $$| $$    | $$_____/  | $$ /$$| $$  | $$           |
|          /$$$$$$$/|  $$$$$$$| $$    |  $$$$$$$  |  $$$$/|  $$$$$$$           |
|         |_______/  \_______/|__/     \_______/   \___/   \____  $$           |
|                                                          /$$  | $$           |
|                                                         |  $$$$$$/           |
|  by pyup.io                                              \______/            |
|                                                                              |
+==============================================================================+
| REPORT                                                                       |
| checked 99 packages, using free DB (updated once a month)                    |
+============================+===========+==========================+==========+
| package                    | installed | affected                 | ID       |
+============================+===========+==========================+==========+
| sqlalchemy-utils           | 0.37.9    | >=0.27.0                 | 42194    |
+==============================================================================+
> echo $?
255

This makes some script pipelines be failed because of exit code (what I expected...)

What I Did

I don't know how to deal with it.
Below is my setting.

- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
    rev: v1.2.1
    hooks:
      - id: python-safety-dependencies-check
        args: [--ignore=42194]
@minyoung90
Copy link
Author

My mistake, I just added ignore setting to only pre-commit setting!

@Ruslan-Skira
Copy link

Ruslan-Skira commented Feb 9, 2022

Explain please what does it mean --ignore=42194 (ID). Does it an issue or not?
Because it is still opened issue. kvesteri/sqlalchemy-utils#166.
And you decided to ignore it temporarily?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants