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

mypy exclude regex does not work when removing mid-level directory. #9

Open
Victorlouisdg opened this issue Jan 30, 2024 · 1 comment

Comments

@Victorlouisdg
Copy link
Collaborator

When you remove de intermediate package-name from the default structure repository-name/package-name/python_package_name, the test folder ends up in repository-name/test. This causes the regex for the mypy in the setup.cfg not to exclude it anymore.

image

@Victorlouisdg
Copy link
Collaborator Author

I believe changing the regex from:

exclude = .*\/((test|build)\/.*|setup.py)

to

exclude = .*((test|build)\/.*|setup.py)

Handles both cases (i.e. keeping and removing the mid-level directory).

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

No branches or pull requests

1 participant