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

Super-Linter Python Ruff linter errors #320

Open
jbampton opened this issue Nov 18, 2024 · 0 comments
Open

Super-Linter Python Ruff linter errors #320

jbampton opened this issue Nov 18, 2024 · 0 comments

Comments

@jbampton
Copy link
Member

  2024-11-18 01:21:53 [INFO]   Linting PYTHON_RUFF items...
  Error: -18 01:21:53 [ERROR]   Found errors when linting PYTHON_RUFF. Exit code: 1.
  2024-11-18 01:21:53 [INFO]   Command output for PYTHON_RUFF:
  ------
  config/layout/type.validate.py:22:16: E712 Avoid inequality comparisons to `True`; use `if not item["is_mother"]:` for false checks
     |
  21 |         if "is_mother" in item:
  22 |             if item["is_mother"] != True and item["is_mother"] != False:
     |                ^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  23 |                 print(item)
  24 |                 error("is_mother is invalid in an item")
     |
     = help: Replace with `not item["is_mother"]`
  
  config/layout/type.validate.py:22:46: E712 Avoid inequality comparisons to `False`; use `if item["is_mother"]:` for truth checks
     |
  21 |         if "is_mother" in item:
  22 |             if item["is_mother"] != True and item["is_mother"] != False:
     |                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^ E712
  23 |                 print(item)
  24 |                 error("is_mother is invalid in an item")
     |
     = help: Replace with `item["is_mother"]`
  
  Found 2 errors.
  No fixes available (2 hidden fixes can be enabled with the `--unsafe-fixes` option).
  ------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant