Idiomatic code validator?

Tim Johnson tim at akwebsoft.com
Tue Sep 20 21:24:09 EDT 2016


* Steve D'Aprano <steve+python at pearwood.info> [160920 16:29]:
> On Wed, 21 Sep 2016 01:41 am, Tim Johnson wrote:
> 
> > Not to confuse idiomatic code validation with pep8 validation (I use
> > elpy on emacs)
> > 
> > Is there such a thing as a validator for _idiomatic_ code?
> 
> 
> Yes, it is called a linter. There are various linters available:
> 
> pylint, pychecker, jedi, flake
  thanks Steve :

  I use flake8 thru elpy. I'm guessing that my inquiry is redundant.
    (I might need to look at more fine-grained configuration thru
	elpy)

  cheers
  - tj -
> 
> there may be others. Depending on how good the linter is, they will do
> things like flag unused arguments, dead code, use of deprecated features,
> and so forth. Some of them may be very opinionated, e.g. flag uses of map()
> as unidiomatic and recommend a list comprehension instead. Whether you
> agree with that opinion or not is up to you.
> 
> 
> 
> 
> -- 
> Steve
> “Cheer up,” they said, “things could be worse.” So I cheered up, and sure
> enough, things got worse.
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list

-- 
Tim 
http://www.akwebsoft.com, http://www.tj49.com



More information about the Python-list mailing list