Linting: Aggressive ruff pass (ruff v0.3.4) #539
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pytest-parametrize-names-wrong-type)
Fixed 144 errors:
2 × I001 (unsorted-imports)
2 × PT003 (pytest-extraneous-scope-function)
1 × PIE790 (unnecessary-placeholder)
1 × TCH005 (empty-type-checking-block)
1 × TCH004 (runtime-import-in-type-checking-block)
1 × RET505 (superfluous-else-return)
3 × RSE102 (unnecessary-paren-on-raise-exception)
2 × ANN204 (missing-return-type-special-method)
1 × T201 (print)
1 × PLR5501 (collapsible-else-if)
1 × RET505 (superfluous-else-return)
1 × RET506 (superfluous-else-raise)
1 × F841 (unused-variable)
2 × PLR6201 (literal-membership)
1 × ANN204 (missing-return-type-special-method)
1 × RET505 (superfluous-else-return)
1 × RUF022 (unsorted-dunder-all)
6 × RET506 (superfluous-else-raise)
1 × RSE102 (unnecessary-paren-on-raise-exception)
1 × TCH005 (empty-type-checking-block)
1 × I001 (unsorted-imports)
8 × ANN204 (missing-return-type-special-method)
2 × PIE790 (unnecessary-placeholder)
2 × COM812 (missing-trailing-comma)
2 × E303 (too-many-blank-lines)
1 × E303 (too-many-blank-lines)
1 × RET504 (unnecessary-assign)
3 × E266 (multiple-leading-hashes-for-block-comment)
2 × COM812 (missing-trailing-comma)
1 × RSE102 (unnecessary-paren-on-raise-exception)
1 × E303 (too-many-blank-lines)
1 × PLR1711 (useless-return)
3 × PT003 (pytest-extraneous-scope-function)
1 × PT001 (pytest-fixture-incorrect-parentheses-style)
2 × ISC001 (single-line-implicit-string-concatenation)
2 × RSE102 (unnecessary-paren-on-raise-exception)
2 × COM812 (missing-trailing-comma)
1 × RET505 (superfluous-else-return)
1 × SIM103 (needless-bool)
5 × COM812 (missing-trailing-comma)
2 × RSE102 (unnecessary-paren-on-raise-exception)
1 × RET506 (superfluous-else-raise)
1 × RET505 (superfluous-else-return)
1 × RET503 (implicit-return)
1 × PLR1711 (useless-return)
1 × E303 (too-many-blank-lines)
1 × RET506 (superfluous-else-raise)
1 × RSE102 (unnecessary-paren-on-raise-exception)
4 × COM812 (missing-trailing-comma)
2 × E266 (multiple-leading-hashes-for-block-comment)
1 × RSE102 (unnecessary-paren-on-raise-exception)
1 × E303 (too-many-blank-lines)
1 × PLR6201 (literal-membership)
1 × PLR1711 (useless-return)
38 × PT007 (pytest-parametrize-values-wrong-type)
1 × PT006 (pytest-parametrize-names-wrong-type)
1 × PT006 (pytest-parametrize-names-wrong-type)
1 × PT014 (pytest-duplicate-parametrize-test-cases)
1 × COM812 (missing-trailing-comma)
1 × PT006 (pytest-parametrize-names-wrong-type)
1 × COM812 (missing-trailing-comma)
1 × PT001 (pytest-fixture-incorrect-parentheses-style)
2 × COM812 (missing-trailing-comma)
1 × PT014 (pytest-duplicate-parametrize-test-cases)
3 × COM812 (missing-trailing-comma)
1 × PT006 (pytest-parametrize-names-wrong-type)