Commit graph

5 commits

Author SHA1 Message Date
Ian Cordasco
9f8dfd924a
Return similarly named, non-submodule modules
In our setuptools integration command, we were attempting to avoid
checking each submodule in the packages list. This was done without
recognizing that two modules may start with the same prefix, e.g.,

- foo
- foo_bar
- foo_biz

In this case, we only ever checked ``foo``. By appending a '.' to the
end of each package name, we avoid this since we only care about
deduplicating submodules, e.g.,

- foo
- foo.sub
- foo.sub.sub

Closes #295
2017-01-22 15:00:48 -06:00
Ville Skyttä
2bc78e62bc Cause system exit only for non-zero exit statuses in setuptools command
See https://github.com/pypa/setuptools/issues/850#issuecomment-265445007
2016-12-08 18:13:03 +02:00
Alex Wood
f4a91f938f Report errors when run via setuptools.
Closes #199
2016-07-29 13:18:57 -04:00
Ian Cordasco
ae794fb46a
Update setuptools integration for setup.cfg
When flake8's config is in setup.cfg, setuptools attempts to set those
options on the command instance. If they don't exist, it fails early
complaining that a specific option does not exist.

This adds this back and does it better than the Flake8 2.x version.

Closes #163
2016-07-09 07:02:27 -05:00
Ian Cordasco
1a2c68f5da
Move flake8 into src
This is an emerging best practice and there is little reason to not
follow it
2016-06-25 10:12:13 -05:00
Renamed from flake8/main/setuptools_command.py (Browse further)