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

Add pylint #251

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

proteusvacuum
Copy link

This adds full pylint functionality to lint-review.

@codecov-io
Copy link

codecov-io commented Mar 15, 2019

Codecov Report

Merging #251 into master will decrease coverage by 0.9%.
The diff coverage is 95.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #251      +/-   ##
==========================================
- Coverage   91.05%   90.14%   -0.91%     
==========================================
  Files          46       46              
  Lines        2739     2609     -130     
==========================================
- Hits         2494     2352     -142     
- Misses        245      257      +12
Impacted Files Coverage Δ
lintreview/tools/py3k.py 94.73% <100%> (+0.29%) ⬆️
lintreview/tools/pylint.py 95% <95%> (ø)
lintreview/tools/swiftlint.py 60.86% <0%> (-39.14%) ⬇️
lintreview/tools/credo.py 74.28% <0%> (-20.84%) ⬇️
lintreview/docker.py 93.33% <0%> (-3.99%) ⬇️
lintreview/github.py 77.77% <0%> (-3.05%) ⬇️
lintreview/tools/__init__.py 81.56% <0%> (-0.64%) ⬇️
lintreview/review.py 95.94% <0%> (-0.13%) ⬇️
lintreview/tools/tslint.py 100% <0%> (ø) ⬆️
... and 5 more

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 83b17f0...61d75fb. Read the comment docs.

@@ -1,7 +1,9 @@
FROM python:3.6-alpine

RUN mkdir /src \
&& mkdir /tool
&& mkdir /tool \
&& apk add musl-dev gcc \
Copy link
Owner

Choose a reason for hiding this comment

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

Does pylint have native extensions?

Copy link
Author

Choose a reason for hiding this comment

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

Are you asking if there are more dependencies that are required here? Pylint does have a concept of an "extension", but I don't see any that require external libraries.

Copy link
Owner

Choose a reason for hiding this comment

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

If there are no additional dependencies why do you need musl-dev and gcc?

output = output.split("\n")
output = [line for line in output if not line.startswith("*********")]
def make_command(self, files):
self.check_options()
Copy link
Owner

Choose a reason for hiding this comment

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

The py3k tool needs to remove the python option as pylint --py3k doesn't do anything useful in python3.

Copy link
Author

Choose a reason for hiding this comment

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

Good catch, updated here: 61d75fb

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