pylint
pylint copied to clipboard
It's not just a linter that annoys you!
### Bug description How to reproduce: - create a venv and install 'pylint==3.3.1' - create a folder named `multiprocessing` - create file `multiprocessing/__init__.py` - create file `multiprocessing/process.py` with contents `import...
### Bug description In our CI pipeline, we encounter this line to be ineffective __occasionally__ if it is not on the first line of the file. It is very strange....
Somehow fixme-in-docstring leaked into the 3.3.x branch? ```py ___________________ TestCallbackOptions.test_generate_rcfile ___________________ tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_generate_rcfile0') @staticmethod def test_generate_rcfile(tmp_path: Path) -> None: """Test the --generate-rcfile flag.""" args = _add_rcfile_default_pylintrc(["--generate-rcfile"]) process = subprocess.run(...
## Type of Changes | | Type | | --- | ---------------------- | | ✓ | :scroll: Docs | ## Description It was noticed that when the `all-options.rst` gets viewed...
### Steps to reproduce 1. Put the following code in a file ```python from sklearn.feature_extraction.text import TfidfVectorizer def average_tfidf(sents): vec = TfidfVectorizer() # convert raw text to scipy sparse matrix...
### Steps to reproduce 1. Create the following directory tree: ``` ./a ./a/src ./a/src/__init__.py ./b ./b/src ./b/src/__init__.py ./b/src/test ./b/src/test/foo.py ./b/src/test/test.py ./b/src/test/__init__.py ``` 2. All `__init__.py` files are empty. 3. Contents...
### Steps to reproduce 1 Have the following file (`xyz.py`): ``` python class A: def get_stuff(self, x): return x def test1(): def g(): pass a = A() a.get_stuff = g...
### Steps to reproduce 1. Create test.py ``` python """ This is a test file """ print "Hello World" # pylint: disable=wrong-spelling-in-comment # I probably have some mipeled words ```...
Originally reported by: **Claudiu Popa (BitBucket: [PCManticore](http://bitbucket.org/PCManticore), GitHub: @PCManticore)** --- The aforementioned checkers are having a lot of trouble with default values in a base class. There are multiple ways...
Originally reported by: **Anonymous** --- I'm using pylint as part of an automated commit hook in git to check if any file that was changed is non-conformant. My git-hook looks...