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

Run from code? #1786

Closed
buhtz opened this issue Jan 16, 2023 · 1 comment
Closed

Run from code? #1786

buhtz opened this issue Jan 16, 2023 · 1 comment

Comments

@buhtz
Copy link

buhtz commented Jan 16, 2023

describe the request

Can I run flake8 from code after doing import flake8?

I can do this with pycodestyle like this

import pycodestyle
pep = pycodestyle.Checker(filename)
pep.check_all() == 0
@asottile
Copy link
Member

there's flake8.api or if you search the issue tracker you'll find #140

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

2 participants