Category "pylint"

use subprocess.run with check = True where the command is expected to return a non-zero exit code

When using subprocess.run it's recommended to use check = True (https://pycodequ.al/docs/pylint-messages/w1510-subprocess-run-check.html). However, there might

Clean way to write this if

Hi I'm writing python function and when I try to test it with pylint it shows: R0912: Too many branches (20/12) (too-many-branches). How should I write this cod

enabling pylint_django plugin in vscode, pylint stop working

That's my user settings in vscode { "python.pythonPath": "/Users/cristiano/miniconda3/envs/django-rest-2/bin/python", "python.linting.pylintEnabled": true,

Automated docstring and comments spell check

Consider the following sample code: # -*- coding: utf-8 -*- """Test module.""" def test(): """Tets function""" return 10 pylint gives it 10 of 10, fl

How to fix Pylint's false positive Unable to import error?

For last couple of hours I was trying to figure out what's the Pythonic way of importing modules from parent directory and from sub-directories. I made a projec

How do I create a pylintrc file

I am running linux. Can I do something like pylint --generate-rcfile > .pylintrc and then make changes to the resulting .pylintrc file to override the defaul

Method name doesn't conform to snake_case naming style

I’m creating a simple project with my pylintrc file and get this error for the test method: method name - test_calculator_add_method_returns_correct_resu

If statement on a Model.field

hopefully this is clear. I am trying to put together a view that takes care of what happens when a user places a bid on an active listing on the auction site I

Pycharm External tools relative to Virtual Environment

Using the PyCharm IDE, when setting up an external tool, how can you set up the external tools with a path relative to use the current virtual env defaults.? A