-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Linter enabled tests #1985
Linter enabled tests #1985
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1985 +/- ##
========================================
Coverage 71.13% 71.13%
========================================
Files 86 86
Lines 12286 12286
Branches 1730 1730
========================================
Hits 8740 8740
Misses 3160 3160
Partials 386 386
Continue to review full report at Codecov.
|
@@ -8,28 +8,38 @@ | |||
# attribute-defined-outside-init<W0201>: (hi-pri) Used when an instance attribute is defined outside the __init__ method. | |||
# bad-continuation<C0330>: (needs review) **REMOVED in pylint-2.6.0** | |||
# bad-indentation<W0311>: (hi-pri) Used when an unexpected number of indentation's tabulations or spaces has been found. | |||
# bad-open-mode<W1501>: (hi-pri) Python supports: r, w, a[, x] modes with b, +, and U (only with r) options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a comment for line 9 above
bad-continuation: (needs review) REMOVED in pylint-2.6.0
maybe we should disable this one globally (to the entire project)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can definitely do that.
Note that python2.6 and python3.4 are stuck on earlier versions that do have this symbol (any of 3.[6,7,8] might also get stuck on current stable, 2.5.3, which also has this symbol), so I'm not sure if that changes things. We could potentially leave this enabled in this file, and disable it for other versions once they update.
tests/common/test_cgroupapi.py
Outdated
@@ -65,24 +65,24 @@ def test_cgroups_should_be_supported_only_on_ubuntu_16_and_later(self): | |||
(['redhat', '7.7.1908', 'Core'], False), | |||
(['bigip', '15.0.1', 'Final'], False), | |||
(['gaia', '273.562', 'R80.30'], False), | |||
(['debian' '9.1', ''], False), | |||
(['debian' '9.1', ''], False), # pylint: disable=implicit-str-concat,implicit-str-concat-in-sequence |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This is my bad. I just submitted #1986 fixing this. We can remove this suppression.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Description
Enable linter to run on unit tests found as PR gate, and added error suppression to existing errors.
PR information
Quality of Code and Contribution Guidelines