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

Automatically ignore tests and __main__.py #47

Open
djmattyg007 opened this issue Sep 11, 2022 · 2 comments
Open

Automatically ignore tests and __main__.py #47

djmattyg007 opened this issue Sep 11, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request stale

Comments

@djmattyg007
Copy link

Description

There's no reason for tests, or for __main.py__, to export anything. Therefore __all__ is unnecessary. Instead of having to amnually configure this for every project, it would be great if this could be automatically determined by the plugin.

Version

  • Operating System: N/A
  • Python: 3.10
  • flake8-dunder-all: latest

Other Additional Information:

I read the docs and the code and couldn't find any evidence of this functionality existing yet.

@djmattyg007 djmattyg007 added the enhancement New feature or request label Sep 11, 2022
@stale stale bot added the stale label Mar 10, 2023
@danie1k
Copy link

danie1k commented Apr 28, 2023

I've found an easy solution - the --per-file-ignores.

@stale stale bot removed the stale label Apr 28, 2023
@djmattyg007
Copy link
Author

That's a terrible solution, because it pushes the solution of an extremely common problem onto every single user of this plugin.

Flake8's configuration is already difficult enough to manage without adding more unnecessary boilerplate.

@stale stale bot added the stale label Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

3 participants