Add support to default config files #447
Add support to default config files #447
Conversation
I don't really get the error message, seems unrelated to the changes. Local runs of |
Bizarre, the Note the CI failure is due to a change in Atom and is unrelated to this PR. |
@Arcanemagus currently, if the I'll update the PR to default |
e6a5e28
to
6290d06
Compare
@Arcanemagus So, I updated the PR with the suggested changes. Now it checks if the I tested it out using all three different default config files, it works for all of them. If the user sets the If no config file is set and no default config file is found, it uses the default rules. |
Sorry, I literally meant change the default value here, that way instead of having a hidden default users can see explicitely what is being searched for and add/remove from it as they desire. |
Oh, okay :) First time dealing with atom packages, didn't even think of looking there :) |
Set the default value for the `projectConfigFile` option to the patterns that flake8 uses when running from command line, as stated http://flake8.pycqa.org/en/latest/user/configuration.html.
6290d06
to
e030573
Compare
Okay, this should do the trick now :) Tested it locally and worked out. |
Marked this as fixing #124, since it likely will. |
Published in v2.3.0 🎉 |
This PR tries to load the
tox.ini
file for loading linting rules.The order of precedence is:
projectConfigFile
if settox.ini
if it existsThe idea behind this is that if a project already has a
tox.ini
file, it should try to use unless overriden. This works similar
to when
flake8
is run in the command line.Fixes #124.