Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put fatal messages at the top in the primer comment #6744

Merged
merged 1 commit into from
May 29, 2022

Conversation

DanielNoord
Copy link
Collaborator

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Write a good description on what the PR does.

Type of Changes

Type
βœ“ πŸ”¨ Refactoring

Description

Ref. #5364 (comment)

Example message after this change:


πŸ€– Effect of this PR on checked open source code: πŸ€–

Effect on astroid:
The following fatal messages are now emitted: πŸ’£πŸ’₯

  1. fatal:
    Fatal error while checking 'tests/.pylint_primer_tests/PyCQA/astroid/astroid/interpreter/objectmodel.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/Users/daniel/Library/Caches/pylint/pylint-crash-2022-05-29-17.txt'.
    Please check your changes on the following file:
    https://github.com/PyCQA/astroid/blob/main/astroid/interpreter/objectmodel.py#L1
  2. fatal:
    Fatal error while checking 'tests/.pylint_primer_tests/PyCQA/astroid/astroid/nodes/node_classes.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/Users/daniel/Library/Caches/pylint/pylint-crash-2022-05-29-17.txt'.
    Please check your changes on the following file:
    https://github.com/PyCQA/astroid/blob/main/astroid/nodes/node_classes.py#L1

The following messages are now emitted:

  1. wrong-import-position:
    Import "import sys" should be placed at the top of the module
    https://github.com/PyCQA/astroid/blob/main/astroid/interpreter/_import/util.py#L5
  2. wrong-import-position:
    Import "from functools import lru_cache" should be placed at the top of the module
    https://github.com/PyCQA/astroid/blob/main/astroid/interpreter/_import/util.py#L6

The following messages are no longer emitted:

  1. missing-class-docstring:
    Missing class docstring
    https://github.com/PyCQA/astroid/blob/main/astroid/interpreter/objectmodel.py#L122
  2. missing-function-docstring:
    Missing function or method docstring
    https://github.com/PyCQA/astroid/blob/main/astroid/interpreter/objectmodel.py#L123

@github-actions
Copy link
Contributor

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

@coveralls
Copy link

Pull Request Test Coverage Report for Build 2405661611

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 95.516%

Totals Coverage Status
Change from base Build 2405551912: 0.0%
Covered Lines: 16230
Relevant Lines: 16992

πŸ’› - Coveralls

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks terrific !

@jacobtylerwalls jacobtylerwalls merged commit 7ae75d2 into pylint-dev:main May 29, 2022
@jacobtylerwalls jacobtylerwalls removed their request for review May 29, 2022 23:08
@DanielNoord DanielNoord deleted the primer-fatal branch May 30, 2022 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants