Daniël van Noord
85a480427c
Use `python-typing-update
on
pylint/utils
and
message
` dirs
2022-04-14 10:27:29 +02:00
Daniël van Noord
bab3cb6a85
Only emit `lru-cache-decorating-method
when
maxsize
is
None
` ( #6181 )
...
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-04-05 16:25:42 +02:00
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
Daniël van Noord
4a6b6bf330
Add `lru-cache-decorating-method
` checker ( #5674 )
...
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-01-14 09:37:48 +01:00
Pierre Sassoulas
532be9afa7
Add caching to bottlenecks in the message store ( #5605 )
...
Some functions can't be cached without impacting the correctness
with the current design.
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2021-12-29 11:13:27 +01:00
Daniël van Noord
86c073e49f
Add basic typing to `pylint/message
`
2021-10-02 16:38:04 +02:00
Daniël van Noord
a71cfe1c4c
Refactor `--list-msgs
&
--list-msgs-enabled
` ( #4793 )
...
* Refactor ``--list-msgs`` & ``--list-msgs-enabled``
Both options now show which messages can't be emitted with the
current interpreter. This makes function more like their name implies.
This closes #4778
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2021-08-03 22:05:11 +02:00
Marc Mueller
21290866a2
Fix copyright links ( #4647 )
...
* Fix link in license header
* Update link to astroid bump_changelog
2021-07-01 12:47:58 +02:00
Pierre Sassoulas
ec78b15c76
Refactor register_message_definition to prevent circular import
2021-06-02 13:13:01 +02:00
Pierre Sassoulas
35a030ea60
Add typing in pylint.messages
...
Only the one that are not creating circular imports.
See #4530
2021-06-02 13:13:01 +02:00
Marc Mueller
a4fac223df
Changes after black update
2021-04-26 14:39:28 +02:00
Pierre Sassoulas
af52033971
Rename copying to license and upgrade the setup.cfg ( #4338 )
2021-04-11 15:29:34 +02:00
Anthony Sottile
a45505143f
pyupgrade: automated removal of python2 constructs
...
using configuration:
```yaml
- repo: https://github.com/asottile/pyupgrade
rev: v2.1.0
hooks:
- id: pyupgrade
args: [--py3-plus, --keep-percent-format]
exclude: ^tests/(extensions/data/|functional/|input/|regrtest_data/)
```
2020-03-24 10:27:21 +01:00
Hugo van Kemenade
b72c0dd9a3
Remove redundant compatibility code ( #3097 )
...
We no longer support Python 2 so we can remove
the compatibility code we had in place for that version.
2019-09-12 06:10:27 -05:00
Pierre Sassoulas
ac30e1e766
[pylint.message] Remove a check that never fail
...
It seems to make performance 2/3 % better during test and during pylint
own analysis.
2019-09-10 11:14:38 +02:00
Pierre Sassoulas
572ed87ee9
[pylint.message] Optimize MessageDefinitionStore storage
2019-09-10 11:14:38 +02:00
Pierre Sassoulas
641a0d02a3
[pylint.message] Simplify get_message_definitions
2019-09-10 11:14:38 +02:00
Pierre Sassoulas
6c29ff712a
[pylint.message] Simplification with 1-1 link between symbol and msgid
...
Also add a lot of unit tests.
2019-08-19 13:54:52 +02:00
Pierre Sassoulas
bd24f94c77
[pylint.message] Symbol seems to never be None anymore
2019-08-16 17:25:23 +02:00
Pierre Sassoulas
68507788fb
[pylint.message] Rename MessagesStore to MessageDefinitionStore
...
We anticipate to have a MessageIdStore.
2019-08-09 15:02:19 +02:00