-
-
Notifications
You must be signed in to change notification settings - Fork 266
simplify flake8 usage #323
Comments
👍 Are you planning create a new pr? |
Not right now, I'm a bit unfamiliar with the codebase and my workload is a bit high for the moment. I might get around to it later if no one else beats me to it. In any case, I'm documenting it here for people who wants to run flake8 with their own IDEs and can't convince them to run flake8 twice. |
👍 |
I don't think we should invest in flake8: AFAIK pylint can also do everything that flake8 is currently doing, so we could use a single style checking tool. |
@dreispt I agree in general, but as long as we're using flake8, if we can go from two flake8 configurations to one configuration with a very simple change like above (and one extra pip package), we'll make it easier for people to integrate flake8 into their favorite IDEs. For example, with the text I posted above inside a .flake8 file in the root of your project, and the linter-flake8 package of the atom editor with the linter-flake8 package, you get beautiful real-time highlights of the errors. The same works for pylint and the linter-pylint package in atom, of course, but to do that, someone will have to enable and test in pylint all errors that flake8 currently catches for us. IMHO we shouldn't block a small improvement just because we intend to replace it with something better latter. |
This topic will be solved in the refactor started in #500 closing for the refactor. This is being considerated |
Flake8 is currently invoked twice by travis, once for
__init__.py
files, and another for regular python files, with slightly different flake8 configuration files (travis_run_flake8__init__.cfg
andtravis_run_flake8.cfg
, respectively).#292 notwithstanding, by installing
flake8-putty
as well, it should be possible to use a singleflake8
invocation with a single configuration file, like this:The above configuration has the advantage of only ignoring redefinitions that are actually decorated by
api.v7
orapi.v8
, while catching other redefinitions.The text was updated successfully, but these errors were encountered: