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

Check extra files? #73

Open
ashb opened this issue Nov 23, 2020 · 2 comments
Open

Check extra files? #73

ashb opened this issue Nov 23, 2020 · 2 comments

Comments

@ashb
Copy link

ashb commented Nov 23, 2020

I would like this module to check my setup.py for flake8 validity, but for some reason it's not picking it up for me.

Is there any setting to list other files to check?

Could this be related to me using a src/ type layout for my package?

@ashb
Copy link
Author

ashb commented Nov 23, 2020

Ah, the problem was the cookie cutter I had used had defined python_files and testpath options for pytest. Removing that and it's checking all python files now.

@ashb ashb closed this as completed Nov 23, 2020
@ashb ashb reopened this Nov 23, 2020
@ashb
Copy link
Author

ashb commented Nov 23, 2020

Actually, is there a way I can add extra files specifically that only get flake8 checked, but that are ignored by pytest for tests? Particularly I'd like to check docs/conf.py and setup.py, but not have flake8 parse them for tests collection.

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