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

Disallow blanket and unused suppressions #4526

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Jul 30, 2024

Summary of changes

As title says.
imo PGH003, PGH004, RUF100 and RUF101 should be part of the skeleton base rules.
Same for mypy's warn_unused_ignores = True and enable_error_code = ignore-without-code if not in strict mode (already part of skeleton)

Includes #4604, please merge that one first

Pull Request Checklist

@Avasam Avasam force-pushed the disallow-blanket-suppressions branch from 07f7273 to 94d4d75 Compare July 30, 2024 17:46
@Avasam Avasam changed the title Disallow blanket suppressions Disallow blanket and unused suppressions Jul 30, 2024
@abravalheri
Copy link
Contributor

Thank you. Let's wait for the feedback in skeleton.

@Avasam Avasam force-pushed the disallow-blanket-suppressions branch from 863e532 to 881c06e Compare August 12, 2024 16:58
@Avasam
Copy link
Contributor Author

Avasam commented Aug 12, 2024

Thank you. Let's wait for the feedback in skeleton.

@abravalheri jaraco/skeleton#136 has been merged

@Avasam Avasam force-pushed the disallow-blanket-suppressions branch 4 times, most recently from 90de434 to 722304b Compare August 27, 2024 15:56
Comment on lines +289 to +292
if not namespaces:
from setuptools.discovery import PackageFinder
else:
from setuptools.discovery import PackageFinder # type: ignore
from setuptools.discovery import PEP420PackageFinder as PackageFinder
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Avasam Avasam force-pushed the disallow-blanket-suppressions branch from 1620a13 to 7758810 Compare August 28, 2024 15:15
@Avasam Avasam marked this pull request as draft August 28, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants