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

.flake8 config file is ignored #7

Open
webartifex opened this issue Jul 28, 2020 · 2 comments
Open

.flake8 config file is ignored #7

webartifex opened this issue Jul 28, 2020 · 2 comments

Comments

@webartifex
Copy link

Hi there. I just tried out your tool as I could really use something like it. Thanks for your efforts and making it public.

Question: It works on *.md files but only spots the default flake8 error classes (mccabe, pyflakes, pycodestyle). I have an extensive .flake8 config file. That is simply ignored. So, all the plugins specified in there do not run in flake8-markdown. That is totally confusing to me.

Before I put more time on this and go through your code, I was wondering if that may be intentional from your side?

@johnfraney
Copy link
Owner

@webartifex Hello! Thanks for taking the time to open an issue. Do you know which flake8 is on your path? I cheat a little bit with this library and I call flake8 in a subprocess, so it should use whichever flake8 is on your path.

It's on my to-do list to convert this to a proper plugin so it plays nicely with other flake8 plugins. I might be able to do that soon.

@webartifex
Copy link
Author

I use flake8 mainly from within a nox session (that is comparable to a tox environment).
Furthermore, I run everything with poetry run as I use poetry to manage the dependencies for my current projects.

If you spend more time on this, maybe take into account that your tool may be called from within some automatically created isolated environment, not the "default" flake8 in a --user location.

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