Questions tagged [pylint]

Pylint is a Python source code analyzer looking for bugs and signs of poor quality.

Pylint is a Python tool that checks if a module satisfies a coding standard.

1691 questions
0
votes
1 answer

How to import custom module in Sonarqube? No name XXX in module YYY

In my build pipeline I add the sources like this: sonar.sources=moduleA/moduleA However, moduleA at some point imports something from moduleB. from moduleB import foo Which results in Sonarqube complaining No name 'foo' in module 'moduleB'.
timbmg
  • 3,192
  • 7
  • 34
  • 52
0
votes
1 answer

Module 'tensorflow' has no '__version__' member pylint (no-member)

I've just installed Tensorflow and trying to print the version I have installed. import tensorflow as tf print(tf.__version__) When I get this 'error': Module 'tensorflow' has no '__version__' member pylint (no-member) I say error because it…
SRR
  • 1,608
  • 1
  • 21
  • 51
0
votes
1 answer

Importing talib gives error "Module 'talib' has no 'EMA' member"

I am trying to use the TA-LIB library of indicators. But after importing talib as so import talib as ta when using any indicator like so ta.EMA(df['Close'], timeperiod=13) I get the pylint error Module 'talib' has no 'EMA' member…
RoboChris
  • 387
  • 1
  • 5
  • 18
0
votes
0 answers

E1101: Module 'Milter' has no 'CONTINUE' member (no-member)

I've decided to improve the quality of my code by running some known working code through pylint. In particular I have a milter using pymilter. Here is the really simple code that I'm running: #!/usr/bin/python3 "Test Milter" import Milter #…
Bintz
  • 784
  • 2
  • 9
  • 22
0
votes
1 answer

Why I am getting pylint error in Django blog? How to solve this issue? Installed pylint. Using VSC Mac

I am a beginner in Django, I am trying to build a basic app by referring a tutorial, after completed the code, getting lots of error related to pylint. Please help me to resolve this issue. Thank you. These are the error
0
votes
0 answers

Is there a way (or even requirement) in Python to indicate abstract intermediate classes?

Consider the following set of classes: from abc import ABC, abstractmethod class GrandParent(ABC): @abstractmethod def foo(self): raise NotImplementedError() @abstractmethod def bar(self): raise…
MikeL
  • 2,369
  • 2
  • 24
  • 38
0
votes
2 answers

Cannot install Pylint on my company network

i'm having issue installing Pylint in VS Code. When i type : pip install pylint --trusted-host=pypi.python.org --trusted-host files.pythonhosted.org --proxy=http://proxy-web.companyname.com:80 it gaves ERROR: Could not find a version that satisfies…
sirimiri
  • 509
  • 2
  • 6
  • 18
0
votes
1 answer

Pylint checker: Format function is not called on a string

Code works fine in wing etc. Pylint isn't very happy with me keep getting the style error: format function is not called on str (misplaced-format-function) def print_daily_totals(rainfalls): '''t''' day = 0 return_list = [] for…
0
votes
0 answers

Infer from subclass in Pylint

I'm calling a method (assignment) which is present in the subclass, but pylint gives a no-member error as the called method is not defined in the base class. Pylint uses infer() defined in NodeNG class (in astroid) for making these kinds of…
0
votes
1 answer

how to fix utils pylint import error on virtual studio code?

As seen in the picture, I keep getting this error. I installed and checked pylint but I can't seem to figure out what seems to be the problem. How to fix this problem in virtual studio code?
Saira
  • 19
  • 5
0
votes
1 answer

How do you properly add an unnecessary indent (for organisational purposes) in Python without pylint complaining?

I'm currently using if True: ... in order to add an extra indentation for organisational purposes but that will make pylint complain about using-constant-test. Is there some kind of proper statement in Python for this situation (something like…
mtanti
  • 794
  • 9
  • 25
0
votes
1 answer

Hide RandomizedSearchCV output

I'm executing pylint in the terminal to clean up my python script a bit. In my script, I also use RandomizedSearchCV. What can I do so that pylint's results do not show the different combinations of the RandomizedSearchCV results? Or how can I…
0
votes
1 answer

pylint marks error with all imports for libraries installed

I am using pylint with Visual Studio Code, and it works fine, with the exception that it marks error in all import clauses that are not modules from python or from my project. It marks error with imports from Django, Django Rest Framework,…
HuLu ViCa
  • 5,077
  • 10
  • 43
  • 93
0
votes
1 answer

What is this PyLint warning on my TODO comment, and how can I ignore it?

PyLint in VS Code is giving me this warning when I add a # TODO comment. I can't find the warning in PyLint's list of messages/codes, so I cannot get it's code to force PyLint to ignore it. How can I find the code?
KOB
  • 4,084
  • 9
  • 44
  • 88
0
votes
1 answer

Why no need to load Python formatter (black) and linter (pylint) and vs code?

I am learning how to use VS code and in the process, I learnt about linting and formatting with "pylint" and "black" respectively. Importantly, I have Anaconda installed as I often use conda environments for my different projects. I have therefore…
mf94
  • 439
  • 4
  • 19