Skip to content
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

Enabled linter for azurelinuxagent.ga. #1980

Merged
merged 3 commits into from
Aug 19, 2020

Conversation

kevinclark19a
Copy link
Contributor

@kevinclark19a kevinclark19a commented Aug 11, 2020

Description

6th of 7 PRs enabling linter in Travis.

Error Codes can be found here: http://pylint.pycqa.org/en/latest/technical_reference/features.html


PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which has an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes in the description.
  • New Unit tests were added for the changes made and Travis.CI is passing.

Quality of Code and Contribution Guidelines

@codecov
Copy link

codecov bot commented Aug 11, 2020

Codecov Report

Merging #1980 into develop will not change coverage.
The diff coverage is 72.47%.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1980   +/-   ##
========================================
  Coverage    71.15%   71.15%           
========================================
  Files           86       86           
  Lines        12285    12285           
  Branches      1729     1729           
========================================
  Hits          8741     8741           
  Misses        3159     3159           
  Partials       385      385           
Impacted Files Coverage Δ
azurelinuxagent/ga/env.py 65.00% <28.57%> (ø)
azurelinuxagent/ga/monitor.py 78.45% <54.54%> (ø)
azurelinuxagent/ga/exthandlers.py 87.72% <66.17%> (ø)
azurelinuxagent/ga/remoteaccess.py 89.00% <71.42%> (ø)
azurelinuxagent/ga/update.py 88.43% <81.66%> (ø)
azurelinuxagent/ga/extension_telemetry.py 91.90% <86.66%> (ø)
azurelinuxagent/agent.py 44.65% <88.88%> (ø)
azurelinuxagent/ga/periodic_operation.py 97.05% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6951bb5...9bffedf. Read the comment docs.

@@ -158,8 +158,8 @@ def _capture_extension_events(self, handler_name, handler_event_dir_path, events
event_file_size = os.stat(event_file_path).st_size
if event_file_size > self._EXTENSION_EVENT_FILE_MAX_SIZE:
msg = "Skipping file: {0} as its size is {1:.2f} Mb > Max size allowed {2:.1f} Mb".format(
event_file_path, convert_to_mb(event_file_size),
convert_to_mb(self._EXTENSION_EVENT_FILE_MAX_SIZE))
event_file_path, convert_to_mb(event_file_size), #pylint: disable=C0330
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the missing space in "#pylint" doesn't matter?

@kevinclark19a kevinclark19a merged commit 9fa5bf4 into Azure:develop Aug 19, 2020
@kevinclark19a kevinclark19a deleted the LinterEnabledGa branch August 19, 2020 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants