tnthieding / pylint-fail-under Goto Github PK
View Code? Open in Web Editor NEWPylint wrapper that verifies code reaches a minimum quality score.
Home Page: https://gitlab.com/TNThieding/pylint-fail-under
License: MIT License
Pylint wrapper that verifies code reaches a minimum quality score.
Home Page: https://gitlab.com/TNThieding/pylint-fail-under
License: MIT License
When I try to run the package I get the following error:
$pylint-fail-under --fail-under 9.0 lama
WARNING: no fail_under argument provided, defaulting to 10.0
Traceback (most recent call last):
File "/usr/local/bin/pylint-fail-under", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/pylint_fail_under/__main__.py", line 38, in main
results = Run(args=cmd_line_args, do_exit=False)
TypeError: __init__() got an unexpected keyword argument 'do_exit'
Python version:
python --version
Python 2.7.16
Package version:
$pip show pylint-fail-under
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Name: pylint-fail-under
Version: 0.3.0
Summary: Pylint wrapper that verifies code reaches a minimum quality score.
Home-page: https://github.com/TNThieding/pylint-fail-under
Author: Tyler N. Thieding
Author-email: [email protected]
License: MIT License
Location: /usr/local/lib/python2.7/site-packages
Requires: pylint
Required-by: LAMA-API
Pylint version:
$pip show pylint
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Name: pylint
Version: 1.9.5
Summary: python code static checker
Home-page: https://github.com/PyCQA/pylint
Author: Python Code Quality Authority
Author-email: [email protected]
License: GPL
Location: /usr/local/lib/python2.7/site-packages
Requires: astroid, six, isort, singledispatch, mccabe, configparser, backports.functools-lru-cache
Required-by: pylint-fail-under, LAMA-API
When using more than one pylint worker, score outcome (pass or reject) can appear in mid-output
When I use pylint-fail-under
with pylint 2.5.0 it works correctly:
root@cecc60f98dd3:/opt# pylint --version
pylint 2.5.0
astroid 2.4.1
Python 3.7.7 (default, Apr 23 2020, 14:43:26)
[GCC 8.3.0]
root@cecc60f98dd3:/opt# pylint-fail-under --fail_under 8.00 ./**/*.py
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
..but whits pylint 2.5.1 (the latest one at the moment) it fails:
root@cecc60f98dd3:/opt# pylint --version
pylint 2.5.1
astroid 2.4.1
Python 3.7.7 (default, Apr 23 2020, 14:43:26)
[GCC 8.3.0]
root@cecc60f98dd3:/opt# pylint-fail-under --fail_under 8.00 ./**/*.py
Traceback (most recent call last):
File "/usr/local/bin/pylint-fail-under", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/pylint_fail_under/__main__.py", line 38, in main
results = Run(args=cmd_line_args, do_exit=False)
TypeError: __init__() got an unexpected keyword argument 'do_exit'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.