Git Product home page Git Product logo

pylint-fail-under's People

Contributors

ganiserb avatar tnthieding avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

pylint-fail-under's Issues

TypeError: __init__() got an unexpected keyword argument 'do_exit'

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

pylint-fail-under fails with pylint 2.5.1

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.