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

Resolve some pylint reported observations #3980

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

andreas-el
Copy link
Contributor

@andreas-el andreas-el commented Oct 4, 2022

Issue
Resolves #3965

Approach
Have split commits to separate refactoring done.

Pre review checklist

  • Added appropriate release note label
  • PR title captures the intent of the changes, and is fitting for release notes.
  • Commit history is consistent and clean, in line with the contribution guidelines.

Adding labels helps the maintainers when writing release notes. This is the list of release note labels.

@andreas-el andreas-el linked an issue Oct 4, 2022 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Merging #3980 (15bcdd4) into main (1955596) will increase coverage by 0.24%.
The diff coverage is 44.73%.

@@            Coverage Diff             @@
##             main    #3980      +/-   ##
==========================================
+ Coverage   58.04%   58.29%   +0.24%     
==========================================
  Files         544      543       -1     
  Lines       41034    40776     -258     
  Branches     3772     3723      -49     
==========================================
- Hits        23819    23771      -48     
+ Misses      16232    15999     -233     
- Partials      983     1006      +23     
Impacted Files Coverage Δ
...rc/ert/_c_wrappers/enkf/config/enkf_config_node.py 76.71% <0.00%> (-0.36%) ⬇️
src/ert/_c_wrappers/enkf/site_config.py 79.79% <ø> (-0.62%) ⬇️
src/ert/_c_wrappers/job_queue/ext_joblist.py 82.00% <0.00%> (-1.68%) ⬇️
...ert/gui/ertwidgets/analysismodulevariablespanel.py 21.69% <0.00%> (-0.21%) ⬇️
src/ert/gui/ertwidgets/models/all_cases_model.py 32.43% <0.00%> (-0.91%) ⬇️
.../tools/plot/customize/limits_customization_view.py 24.32% <0.00%> (ø)
...rc/ert/gui/tools/plot/data_type_keys_list_model.py 37.83% <0.00%> (-1.06%) ⬇️
src/ert/gui/tools/plot/plot_case_model.py 30.55% <0.00%> (-0.88%) ⬇️
src/ert/shared/ensemble_evaluator/client.py 95.00% <ø> (ø)
src/ert/gui/ertwidgets/checklist.py 12.93% <25.00%> (ø)
... and 42 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@oysteoh
Copy link
Contributor

oysteoh commented Oct 4, 2022

You probably need a rebase on main ( there are conflicting files )

Then - you should probably squash your commits into one bigger one when you are done fixing the issue and write a descriptive message capturing the changes following the guidelines in the pre-review checklist stated in the PR message.

@andreas-el andreas-el force-pushed the refactor_pylint_observations branch from 15bcdd4 to e60b404 Compare October 5, 2022 07:21
@andreas-el andreas-el changed the title Refactor pylint observations Resolve some pylint reported observations Oct 5, 2022
@oysteoh oysteoh added the release-notes:improvement Automatically categorise as improvement in release notes label Oct 5, 2022
@andreas-el andreas-el force-pushed the refactor_pylint_observations branch from e60b404 to 9f81390 Compare October 5, 2022 11:33
Refactored reported inconsistent return statements to returning 'None'
although this is implicitly done.
Adds disable unexpected-keyword-arg to avoid false report for
unitt_invalid_res_config test.
Adds no-op pass statement to avoid pylint reported try-except-raise in
exception handling.
Replace Sphinx copyright variable with alias project_copyright.
Renames variables using keywords func, sum, iter, hash, dir, filter,
input.
Adds default value for _func argument in plugin-response decorator.
Adds guard if _func is not provided, plugin-response function shall
return 'None'.
@andreas-el andreas-el force-pushed the refactor_pylint_observations branch from 9f81390 to 58612a2 Compare October 6, 2022 06:40
@andreas-el andreas-el merged commit 2a987ae into equinor:main Oct 6, 2022
@andreas-el andreas-el deleted the refactor_pylint_observations branch October 6, 2022 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:improvement Automatically categorise as improvement in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resolve some of the Pylint reported issues
3 participants