Skip to content

S101 assert can be used in testing. #22135

@bytepure

Description

@bytepure

Summary

https://docs.astral.sh/ruff/rules/assert/

in testing, assert used frequently

so, is there a way to allow the use of assert command in tests, and in src not allow

project
  -src
  -tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions