Commit Graph

5 Commits

Author SHA1 Message Date
Pierre Sassoulas
ec4a3f7f1e Add a pre-commit hook to check the copyright notice
Fix the existing file so they have a notice.
No header for setup.py or examples or doc
2022-03-24 13:06:15 +01:00
Pierre Sassoulas
9e0baf370a Simplify hard to maintain copyright notice
git is the source of truth for the copyright, copyrite (the tool)
was taking exponentially longer with each release, and it's
polluting the code with sometime as much as 50 lines of names.
2022-03-24 13:06:15 +01:00
Daniël van Noord
595ec422d6
Update `pydocstringformatter` to 0.4.0 (#5787) 2022-02-10 19:30:15 +01:00
Pierre Sassoulas
7d25842515
Add typing and uniformize the checker registering in Pylinter (#5558)
Remove verbose docstring in code, keep them in example and doc

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
2021-12-27 21:30:34 +01:00
Martin
de307ccf20
Inspection for with threading.Lock(): (#5245)
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>
2021-11-03 22:49:04 +01:00