summaryrefslogtreecommitdiff
path: root/pylint/utils/file_state.py
Commit message (Collapse)AuthorAgeFilesLines
* Drop support for Python 3.7 (#8609)Marc Mueller2023-04-241-7/+1
| | | | | * Drop support for Python 3.7 * Update py-version + classifier * Update functional tests
* [PyCQA migration] Upgrade links to the repositories in code and doc (#8514)Pierre Sassoulas2023-03-291-2/+2
|
* [FileState] Remove 'collect_block_lines'Pierre Sassoulas2023-03-081-20/+0
| | | | Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
* [FileState] Make Pylinter.current_name and msg_store non nullablePierre Sassoulas2023-03-081-20/+2
|
* Use stacklevel=2 in warnings.warn calls to DeprecationWarning where makes ↵Yilei "Dolee" Yang2022-09-151-0/+3
| | | | | | | | sense. (#7465) Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com> Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Turn on ``mypy`` strict mode 🎉 (#7448)Daniël van Noord2022-09-091-1/+1
| | | | | | | | | | * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode
* Make ``disable-next`` only consider the succeeding line (#7411)Daniël van Noord2022-09-051-15/+35
|
* Some initial line wrapping of docstrings (#6672)Daniël van Noord2022-05-231-1/+3
|
* Fix disabling of ``bad-option-value`` (#6556)Daniël van Noord2022-05-091-12/+70
| | | Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Refactor ``_collect_block_lines`` (#6560)Daniël van Noord2022-05-091-31/+40
|
* Pass ``msg_store`` and ``node`` to ``FileState`` (#6558)Daniël van Noord2022-05-091-2/+29
|
* Add some manual typing changes (#6325)Daniël van Noord2022-04-141-2/+4
| | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Use ``python-typing-update`` on ``pylint/utils`` and ``message`` dirsDaniël van Noord2022-04-141-22/+15
|
* Add a pre-commit hook to check the copyright noticePierre Sassoulas2022-03-241-1/+1
| | | | | Fix the existing file so they have a notice. No header for setup.py or examples or doc
* Simplify hard to maintain copyright noticePierre Sassoulas2022-03-241-0/+1
| | | | | | 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.
* Prevent `useless-suppression` on disables for stdlib deprecation checker (#5876)Jacob Walls2022-03-111-8/+13
| | | | Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
* Update ``pydocstringformatter`` to 0.4.0 (#5787)Daniël van Noord2022-02-101-2/+2
|
* Fix remaining typing issues for ``PyLinter`` and related functions (#5663)Daniël van Noord2022-02-081-1/+3
|
* Fix typo in pylintrc for useless-suppression (#5303)Daniël van Noord2021-11-231-2/+2
| | | | | | | | | | | * Fix typo in pylintrc for useless-suppression * Fix CI for information messages * Remove useless disables * Update CI and docs for 3.8+ Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
* Refactor of ``FileState.handle_ignored_message()`` (#5064)Daniël van Noord2021-09-231-11/+2
| | | Remove unnecessary parameters
* Add typing to `FileState` (#5049)Daniël van Noord2021-09-201-15/+64
|
* Fix copyright links (#4647)Marc Mueller2021-07-011-1/+1
| | | | * Fix link in license header * Update link to astroid bump_changelog
* Rename copying to license and upgrade the setup.cfg (#4338)Pierre Sassoulas2021-04-111-1/+1
|
* pyupgrade: automated removal of python2 constructsAnthony Sottile2020-03-241-2/+0
| | | | | | | | | | | | | 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/) ```
* useless-suppression detection now ignores cyclic-import (#3071)Eric Froemling2019-08-221-3/+6
| | | | Tweaked useless-suppression detection to ignore cyclic-import since cycles may not be detected until after it fires.
* Fix a bunch of linting errors from the codebaseClaudiu Popa2019-05-221-4/+4
|
* Refactor - Avoid intra-packages circular dependencies for constantsPierre Sassoulas2019-03-291-2/+1
| | | | | | | | Some constants were package internal but were used by multiple packages. This created circular dependencies. By creating a file for constants we make sure this does not happen because we won't import everything important in this file and every thing else can depend on it.
* Style - Apply isort on all apllicable filesPierre Sassoulas2019-03-201-0/+1
|
* Refactor - Create a pylint.message packagePierre Sassoulas2019-03-091-1/+1
| | | | | | | | There is a lot of Message related class in Utils this warrant the creation of a new package. See also review for burst utils.py into a package here: https://github.com/PyCQA/pylint/pull/2654#issuecomment-470748956
* Refactor - Create a file for each class in utilsPierre Sassoulas2019-03-091-0/+135