Advertisement · 728 × 90
#
Hashtag
#Pylint
Advertisement · 728 × 90
Original post on mastodon.green

No, #pylint, these parentheses are not superfluous. Not even remotely:

substantial_removals_found = (any_removes != trivial_removes)
substantial_insertions_found = (any_inserts != trivial_inserts)

Now how to patch pylint to make it accept this code without disabling the entire check?

#Python […]

0 0 0 0
Preview
Python Linter for Use with Jupyter Python linter for use with jupyter

How to use the Python linter pylint with Jupyter can be find in a post of mine at Copus.

www.copus.io/work/c124cc6...

#Python #Jupyter #notebook #linter #pylint #flake8 #Copus #scripting #Linux

1 0 0 0
Python 2 is not a fan of this class declaration. (Well, the last PyLint that supported Python 2 isn't...)

Python 2 is not a fan of this class declaration. (Well, the last PyLint that supported Python 2 isn't...)

Amused that I have to put in a PyLint instruction to ignore "old-style" classes to get my CI tests to pass for Python 2, where Python 3 seems fine with them.

#Python #WhatsOldIsNewAgain #PyLint

0 0 0 0
Preview
pylint python code static checker

👨‍💻🐍 #Pylint — один із найпопулярніших лінтерів для #Python. Він перевіряє код на відповідність стандарту PEP-8, запускає його для виявлення помилок та підказує, як зробити код чистішим і зрозумілішим

🔗 pypi.org/project/pyli...

0 0 0 0

Do you read code just for pleasure? I was intrigued about how #pylint works and took a look to some rules.

What are your favorite legible software projects?

0 0 0 0
Post image

Just spent 30 minutes trying to get a perfect score with #PyLint (three files, 8 functions). Went from a 5.5 to a perfect 10. Although most of it was a bit anal, I did learn a few new things about #Python along the way.

1 0 0 0