S101 Use of assert detected #713
-
This was in a test:
this was a good discussion: https://stackoverflow.com/questions/68428293/s101-use-of-assert-detected-for-python-tests Maybe this should be disabled for the test directory with a link/explanation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Even WPS itself disables this in tests. I asked them about it at some point, it's the official recommendation. As for the main project codebase, it tends to be controversial. For example, ansible-core forbids it with an in-house linter requiring it to be rewritten as Maybe we could disallow |
Beta Was this translation helpful? Give feedback.
-
this is covered by the following entry in the flake8 config
|
Beta Was this translation helpful? Give feedback.
this is covered by the following entry in the flake8 config