pylintrc Questions
1
I followed these instructions on how to get pylint to import my files correctly using an init-hook.
However, when I run the terminal command pylint server.py --rcfile=../.pylintrc I get TypeError: ...
Pinko asked 23/8, 2020 at 8:20
2
Solved
I am using a Mac and programming with Python on VS Code. After installing pylint, I had a bunch of warnings and messages. How do I disable these? I know about adding some lines to the pylintrc file...
4
We have a .pylintrc file committed to git in our project root that is used by our team which has many useful errors disabled. So VS Code doesn't show those. I want to know if I can use my own pylin...
Skewer asked 7/1, 2020 at 8:18
2
I have tried pylint --indent-string=" ", but I keep getting the help message. What am I supposed to do to configure pylint.
Inspiratory asked 9/1, 2019 at 20:17
1
I'm a big fan of pylint's built-in docstring checker. I'm very happy to require docstrings on all my classes, all my functions, and all my modules.
What I don't like, however, is that pylint also w...
2
When using multiple tools that either check or format python files, is there a way to set line length once for all?
Currently I have:
.flake8 file:
max-line-length = 120
.isort.cfg file:
line-leng...
Stonyhearted asked 6/4, 2022 at 21:18
5
Solved
I'm looking through my RC file and I can't for the life of me, find which one of these variables disables that feature.
I searched for "if", "else" and "return" and I didn't see anything. Unless ...
3
Solved
I am using BitBucket pipelines to perform linting checks with pylint. It was working fine a few hours ago. I have been facing the following error even though the final score is well past the minimu...
Segovia asked 27/11, 2021 at 17:7
2
I will use this simple Python file for illustrating my problem:
import os
for i in range( -500, 0 ):
print i
I run Pylint on this file and get one message:
$ pylint foobar.py
************* Mo...
1
I have updated pylint version
Now it is complaining for no-self-use checker on .pylintrc file.
************* Module ../../.pylintrc
.pylintrc:1:0: E0015: Unrecognized option found: no-space-check (...
3
Solved
I have organized my self-written Python scripts within a tree of several sub-directories,
starting from the parent directory "Scripts" which is already included in "python.autoComplete.extraPaths" ...
Cagey asked 14/4, 2020 at 9:7
1
Solved
Is there a way to change/specify the severity level (error, warning) of a rule in pylintrc file?
5
Solved
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_result - doesn't conform to snake_case naming s...
1
I have multiple warnings from pylint like that:
'''Variable name "df" doesn't conform to snake_case naming style'''
As I could understand, it happens because of variable name length less ...
0
I use the typing module. I'd like to always use the code from typing import List, Set, Dict, Tuple, Optional without stopping to edit that line to reference only the types used in the current modul...
1
When I run pylint installed with pip (version 2.1.1 and Python V.3.7) in windows 10, I get this error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte....
Fca asked 20/9, 2018 at 5:58
1
Solved
I keep getting C0103 warnings from pylint in Visual Studio, because I am trying to use 2-character variables names like hp and gp. The warning is described here: link.
The convention is described...
Gass asked 5/10, 2017 at 17:52
3
Solved
Is there a way to configure the checks for the bad-whitespace checks in PyLint? I can currently disable checking but I would much rather enforce a whitespace convention instead of disabling it.
1
I am not a stickler for most things pep-8, but certain things I personally prefer when writing code (as opposed to for work, where I would adhere to the style or lack thereof of the existing code b...
2
Solved
I saw I can change it per Eclipse instance using this solution.
I would like to set it per project. Is it possible?
1
© 2022 - 2024 — McMap. All rights reserved.