Skip to content

Commit d05bb60

Browse files
Bump to version 3.0.2 TS-635 (#188)
* Bump to version 3.0.2 TS-635 * Remove .bsp
1 parent 44ff6de commit d05bb60

File tree

16 files changed

+111
-36
lines changed

16 files changed

+111
-36
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
codacy: codacy/base@10.8.0
4+
codacy: codacy/base@10.9.1
55
codacy_plugins_test: codacy/plugins-test@1.1.1
66

77
workflows:

docs/description/C0117.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# unnecessary-negation (C0117)
2+
3+
Consider changing "%s" to "%s" Used when a boolean expression contains
4+
an unneeded negation, e.g. when two negation operators cancel each other
5+
out.

docs/description/C0209.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# consider-using-f-string (C0209)
22

3-
Formatting a regular string which could be a f-string Used when we
3+
Formatting a regular string which could be an f-string Used when we
44
detect a string that is being formatted with format() or % which could
5-
potentially be a f-string. The use of f-strings is preferred. Requires
5+
potentially be an f-string. The use of f-strings is preferred. Requires
66
Python 3.6 and py-version \>= 3.6.

docs/description/C1802.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# use-implicit-booleaness-not-len (C1802)
22

33
Do not use \`len(SEQUENCE)\` without comparison to determine if a
4-
sequence is empty Used when Pylint detects that len(sequence) is being
5-
used without explicit comparison inside a condition to determine if a
6-
sequence is empty. Instead of coercing the length to a boolean, either
7-
rely on the fact that empty sequences are false or compare the length
8-
against a scalar.
4+
sequence is empty Empty sequences are considered false in a boolean
5+
context. You can either remove the call to 'len' (if not x) or compare
6+
the length against a scalar (if len(x) \> 1).

docs/description/C1803.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# use-implicit-booleaness-not-comparison (C1803)
22

3-
'%s' can be simplified to '%s' as an empty %s is falsey Used when Pylint
4-
detects that collection literal comparison is being used to check for
5-
emptiness; Use implicit booleaness instead of a collection classes;
6-
empty collections are considered as false
3+
"%s" can be simplified to "%s", if it is strictly a sequence, as an
4+
empty %s is falsey Empty sequences are considered false in a boolean
5+
context. Following this check blindly in weakly typed code base can
6+
create hard to debug issues. If the value can be something else that is
7+
falsey but not a sequence (for example None, an empty string, or 0) the
8+
code will not be equivalent.

docs/description/C1804.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# use-implicit-booleaness-not-comparison-to-string (C1804)
2+
3+
"%s" can be simplified to "%s", if it is striclty a string, as an empty
4+
string is falsey Empty string are considered false in a boolean context.
5+
Following this check blindly in weakly typed code base can create hard
6+
to debug issues. If the value can be something else that is falsey but
7+
not a string (for example None, an empty sequence, or 0) the code will
8+
not be equivalent.

docs/description/C1805.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# use-implicit-booleaness-not-comparison-to-zero (C1805)
2+
3+
"%s" can be simplified to "%s", if it is strictly an int, as 0 is falsey
4+
0 is considered false in a boolean context. Following this check blindly
5+
in weakly typed code base can create hard to debug issues. If the value
6+
can be something else that is falsey but not an int (for example None,
7+
an empty string, or an empty sequence) the code will not be equivalent.

docs/description/E0106.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# return-arg-in-generator (E0106)
22

33
Return with argument inside generator Used when a "return" statement
4-
with an argument is found outside in a generator function or method
5-
(e.g. with some "yield" statements). This message can't be emitted when
6-
using Python \>= 3.3.
4+
with an argument is found in a generator function or method (e.g. with
5+
some "yield" statements). This message can't be emitted when using
6+
Python \>= 3.3.

docs/description/R1726.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# simplifiable-condition (R1726)
22

3-
Boolean condition '%s' may be simplified to '%s' Emitted when a boolean
3+
Boolean condition "%s" may be simplified to "%s" Emitted when a boolean
44
condition is able to be simplified.

docs/description/W0107.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# unnecessary-pass (W0107)
22

3-
Unnecessary pass statement Used when a "pass" statement that can be
4-
avoided is encountered.
3+
Unnecessary pass statement Used when a "pass" statement can be removed
4+
without affecting the behaviour of the code.

0 commit comments

Comments
 (0)