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

Test out how to fix most complaints of Codacy #57

Draft
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

gnn
Copy link
Collaborator

@gnn gnn commented Nov 19, 2020

This branch is about testing configuration settings which should disable all of Codacy's complaints which aren't really of interest for us, so that only those ones which actually matter to us and should be fixed are raised.

This would fix #56.

These should be caught by our tests or `tox -e check` runs, which
currently don't use pylint. Since pylint is only run via code quality
checking platforms, it's ran in as without installing the package under
test so getting import errors is normal.
@gnn gnn marked this pull request as draft November 19, 2020 19:20
For some reason Codacy still mentions issues found via Prospector's
pylint integration, even though I disabled it in Codacy's settings.
That's why I'm trying to disable the errors directly in Prospector's
configuration file. Let's see whether Codacy picks this up.
Another option would be to disable running pylint through Prospector
completely by using ".prospector.yaml". I should try this, should the
configuration in this commit not work.
@gnn gnn self-assigned this Nov 20, 2020
Apparently they are unnecessary because pylint also picks up the option
without them present.
The message codes where missing a leading "D".
@codecov-io
Copy link

codecov-io commented Nov 21, 2020

Codecov Report

Merging #57 (25a733c) into dev (68dc4a1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev      #57   +/-   ##
=======================================
  Coverage   63.05%   63.05%           
=======================================
  Files          11       11           
  Lines         157      157           
  Branches        8        8           
=======================================
  Hits           99       99           
  Misses         57       57           
  Partials        1        1           

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 68dc4a1...25a733c. Read the comment docs.

According to Codacy's documentation, '.prospector.yaml' is legal, but
since it also displays a notification that it doesn't find a
configuration file for Prospector, I'm trying other variants. Using
".yml" as the extension is the first.
@gnn gnn force-pushed the fixes/#56-fix-codacy-issues branch from daed087 to 25a733c Compare November 21, 2020 04:35
Since the bitshift operators are usually side effect free, using them
outside of an assignment or something similar looks like a statement
without an effect to a static code checker. Using `chain` might remedy
this.
khelfen pushed a commit that referenced this pull request Nov 8, 2024
…taset

Add scenario capacities to pipeline
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.

Fix Codacy's complaints as far as possible
2 participants