| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Calling external request needs to use timeout in order to avoid waiting for a long time
You can even reproduce the case using deelay.me
e.g.
```python
import requests
response = requests.get("https://deelay.me/5000/http://localhost:80") # It will spend 5s
response = requests.get("https://deelay.me/5000/http://localhost:80", timeout=2) # timeout
response = requests.get("https://deelay.me/1000/http://localhost:80", timeout=2) # fine
```
After 2s if the request doesn't have response it raises the following exception
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='deelay.me', port=443): Read timed out. (read timeout=2)
But if it responses <=1s it is fine
Now you can test the same but using a bigger delay
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
Update contributors and create release summary
|
|
|
|
| |
Add _enum_has_attribute to typechecker to parse AST and find attribute assignments
in __new__.
|
|\ |
|
| | |
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
I.E. the used name in git is the same that was already existing
in the contributors.txt.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#5925)
* Fix parsing of long lines when ``missing-final-newline`` is enabled
* Adapt fa31b6b6 to be backward-compatible
Fixes #5724
Also address comments from the PR PyCQA/pylint#5786
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: Yudaka <dakala@tuta.io>
|
|
|
|
|
|
|
|
| |
python version < 3.7 will still remain on mccabe 0.6.x, while
newer version will pick mccabe 0.7.x release
Closes #5878
Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
|
|
|
|
| |
Removing the final slash in the `repo` url prevents git from not being
able to clone the repository.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using "\b" at the end of these patterns will only match note tags that
end in an alphanumeric character, immediately followed by a
non-alphanumeric character, or the end of the string. This is due to
"\b" being defined as a boundary between a word character ("\w") and a
non-word character ("\W"), or the end of the string. This leads to
deviations like "???" being ignored when specified.
Swapping "\b" for a positive lookahead that targets a whitespace, a
colon, or the end of a string accounts for this.
Closes #5840.
|
|
|
|
|
| |
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
| |
|
|
|
|
| |
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
| |
* split ``non-ascii-name`` into 3 different msgs
- non-ascii-identifier (replaces non-ascii-name)
- non-ascii-file-name (a warning)
- non-ascii-module-import (only considering the namespace the import is imported in)
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
| |
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix assigning-non-slot false positive with setattr
Previously, if a class was slotted and overrode `__setattr__`,
`assigning-non-slot` would be issued when assigning to attributes. With
`__setattr__` defined, we cannot infer if it is an error to assign to an
attribute, so we suppress the error.
Fix #3793
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
|
|
|
| |
The isinstance checks were not necessary here and caused several false
positives where a function with variadic positional argument was called,
like for example when the call is used as a function argument, in a if,
while or with statement.
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
| |
* Docker: Python 3.10 and Alpine 3.15
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update code example in "How to Write a Checker"
`pylint.testutils.Message` got first renamed to
`pylint.testutils.TestMessage` in 49776acdd and finally renamed to
`pylint.testutils.MessageTest` in 24cbf8c33.
* Add pylbrecht to contributors
Co-authored-by: Philipp Albrecht <philipp.albrecht@momox.biz>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
|
| |
* #5452: Fix false positive missing-doc-param from multi-line Google-style docstrings.
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
| |
* Clarify syntax in pylint.lint example
This makes the call non-trivial and demonstrates the syntax more fully.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix crashes during toml configuration parsing
Add test for current 'pyproject.toml' issues. Add a 'bad-configuration-section'
message for bad toml configuration
We can detect bad top level option when reading the toml but we do not catch
all the problem in toml because we don't know what is expected so we can't
recommend. See #5259
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using `with threading.Lock():` directly has no effect.
Correct usage is:
```
lock = threading.Lock()
with lock:
...
```
This applies for:
* threading.Lock
* threading.RLock
* threading.Condition
* threading.Semaphore
* threading.BoundedSemaphore
Signed-off-by: Martin Basti <mbasti@redhat.com>
|
|
|
|
|
| |
* add test import for multiprocessing.synchronize
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Fix access to private function in inner class on protected-access bug
* Add functional test for protected-access from inner class
* Add Ikraduya to CONTRIBUTORS file
* Add if statement to avoid potential bug
* Fix ``protected-access`` for attributes and methods of nested classes
This closes #3066
Co-authored-by: ikraduya <ikraduya@gmail.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
|
|
|
|
| |
* Unify all `<y or n>` metavars
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Clean up some useless-super-delegation logic
In _definition_equivalent_to_call, avoid constructing a tuple and
calling "all" on that. Instead, just check each condition in turn,
terminating as soon as one fails.
In _has_different_parameters_default_value, use a single sentinel value
for a missing default instead of constructing a new one each call. Also
construct the dict of comparators once instead of once each call.
Restructure the logic to be less nested.
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
|