Questions tagged [pylintrc]

90 questions
0
votes
1 answer

ignore certain files from pylint scan in jenkins

am new to working on jenkins. am trying to integrate pylint with jenkins build.In my jenkins file am saying it to scan all the files with .py extension and deploy only if jenkins build score is greater than 9/10. I have a situation where I need to…
ashakshan
  • 419
  • 1
  • 5
  • 17
0
votes
1 answer

PyLint Doesn't work on GitLab (Python 3.X)

I'm having a problem with Pylint on gitlab. For some reason, it crashes on the middle of the process of analysing the code.. But doesn't say nothing to me, only crashes.. Here are some log: core/db/sql/pgsql/__init__.py:162:8: E1101: Instance of…
0
votes
1 answer

how to configure pylint for greater accuracy

Getting false positive from pylint Consider this code: previous = None for word in ['you', 'cannot', 'be', 'serious']: if previous is not None: print(previous[0], word) previous = word Here is the output (no surprises here): $…
alani
  • 12,573
  • 2
  • 13
  • 23
0
votes
1 answer

Getting E1101 errors ("no member") from spyder's static code analysis

Lately (since something changed in spyder or pylint or ?), I have been getting E1101 errors ("no member") from spyder's static code analysis on astropy.constants symbols. No idea why or what changed.
Richard Elkins
  • 317
  • 2
  • 7
0
votes
2 answers

How to get the running time in the Pylint of each file

I am using the pylint in my project and it runs over 1min which is too long for me .How can I get the specific running time of each file in my project? Here is my research: The issue on the github How to speed up pylint Can you give me some…
Deft-pawN
  • 943
  • 10
  • 12
0
votes
1 answer

pylint incorrectly identifies constant name as C0103 not conforming to const-rgx expression

I've been linting my python code for some time now in order to make it more Pythonian and to that effect I've been using pylint to help identify problematic code blocks. However, now I'm having a kind of weird error, where pylint is flagging a…
Bjarne Thorsted
  • 117
  • 1
  • 11
0
votes
1 answer

Locally disabling SonarQ warnings

I have a python project configured to amke static analysis with SonarQ. In tests package, all setUp methods are marked with python:S100 warnings because of method name (it's C0103 in pylint). I would like to disable this for all methods in tests…
BangTheBank
  • 809
  • 3
  • 11
  • 26
0
votes
2 answers

How to specify pylintrc config values, one on each line?

I am using a .pylintrc in my project root directory to control the PyLint messages I get when I run it on my project. There are many options in pylintrc that take a comma separated list of values. For…
Ashwin Nanjappa
  • 76,204
  • 83
  • 211
  • 292
0
votes
3 answers

How to style long lines in python using Google python style and pylint?

I am trying to clean up my code for an assignment by running pylint over it with the google python style rc file. I just want to confirm that this is the correct style for the the first print line, as it look pretty weird, but the google style…
S. Mac
  • 3
  • 4
0
votes
0 answers

How to set Travis to fail when I don't pass my pylint threshold

Say I run my pylint suite and get a score of 9.2/10. I want this to be deemed acceptable by Travis as above a 9/10 cutoff, and allow for a successful build. Now someone else commits to the same repository with poorly formatted code, generating a new…
Alex Mapley
  • 752
  • 8
  • 12
0
votes
1 answer

Weird warning message keeps appearing in Eclipse/Pydev/Pylint

I'm using Eclipse Neon with PyDev, Pylint3 (pylintrc configured) and I have the a pylint warning message in a blank line. It was true the first time it appeared, but after modifying the code, it didn't disappear. After that, I moved the code and a…
madtyn
  • 1,469
  • 27
  • 55
0
votes
1 answer

PyLint evaluation Configuration

What do the various variables in the PyLint evaluation configuration setting (error, warning, refactor, convention, statement) represent? Are there any other variables available in the calculation?
FluxIX
  • 325
  • 1
  • 2
  • 13
-1
votes
1 answer

Create new variable inside of pylintrc file

I'm coming from a world where we program mostly in C++ and our minimal Python code often uses a mix of Pythonic methods and C++ best practices. As such I'd like to create some custom regexes for variable naming.…
drjrm3
  • 4,474
  • 10
  • 53
  • 91
-1
votes
1 answer

C0209: Formatting a regular string which could be a f-string (consider-using-f-string)

For the below line, I am getting pylint issue: " C0209: Formatting a regular string which could be a f-string (consider-using-f-string)" auth = str(base64.b64encode(bytes("%s:%s" % (self.user, self.password), "utf-8")), "ascii").strip() I tried…
I2Tec
  • 23
  • 5
-3
votes
1 answer

While using pylint I found that it also has an option of silent run. Why is it there and what is the use of it?

Why does pylint give an option to silent run I dont understand. The documentation doesnt providde reason for the same. Also, does anyone know how can one generate .pylintrc file by running a python program. I know that it can be generated from…
rahul rachh
  • 99
  • 1
  • 12
1 2 3 4 5
6