-
## Description
To check if a variable is equal to one of many values, combine the values into a tuple and check if the variable is contained `in` it instead of checking for equality against each of t…
-
## Description
Defining an instance attribute outside `__init__` affects the readability of code. It is expected to find all the attributes an instance may have by reading its `__init__` method. If t…
-
## Description
Using the literal syntax can give minor performance bumps compared to using function calls to create `dict`, `list` and `tuple`. <!--more--> ```bash In [1]: timeit.timeit(stmt=&q…
reece updated
3 years ago
-
## Description
React must be present in scope where JSX is being used. <!--more--> When using JSX, `<a />` expands to `React.createElement("a")`. if a `React` instance is not in…
-
## Description
There should be one, and only one, blank line at the end of each file. This warning will occur when there are two or more blank lines.
## Occurrences
There is 1 occurrence of this …
-
## Description
All module level imports should be at the top of the file. This means that there should be no statements in between module level imports.
## Occurrences
There are 3 occurrences of …
-
### Bug description
It's hard to reproduce this bug. But it happened when I was trying to run pylint over [this repository](https://github.com/School-Simplified/Timmy-SchoolSimplified)
Here's th…
-
Fix anti-pattern issue `if expression used can be simplified` PYL-R1719: https://deepsource.io/gh/scanapi/scanapi/issue/PYL-R1719/occurrences
![image](https://user-images.githubusercontent.com/2728…
-
Fix anti-pattern issue `Unnecessary else / elif used after return` PYL-R1705: https://deepsource.io/gh/scanapi/scanapi/issue/PYL-R1705/occurrences
![image](https://user-images.githubusercontent.com…
-
Fix `Doc line too long FLK-W505`: https://deepsource.io/gh/scanapi/scanapi/issue/FLK-W505/occurrences
![image](https://user-images.githubusercontent.com/2728804/127705974-4b874dee-1d9d-41f9-b3ee-8…