seddonym / import-linter

Import Linter allows you to define and enforce rules for the internal and external imports within your Python project.
https://import-linter.readthedocs.io/
BSD 2-Clause "Simplified" License
664 stars 45 forks source link

Run as a flake8 plugin #101

Open andreoliwa opened 3 years ago

andreoliwa commented 3 years ago

Hi there. Thanks for this tool, we will start to use it in my current company.

Is there any plan to turn this tool into a flake plugin? (Writing Plugins for Flake8 — flake8 3.9.2 documentation)

Pros:

  1. Return violations in a known and standard format, already used by lots of developers.
  2. Point to the exact line of the violation.
  3. Allow integration with flake8 tools like https://github.com/flakehell/flakehell, which create a baseline of exclusions for legacy projects (baseline: integrate into a huge project — FlakeHell 0.8.0 documentation)
seddonym commented 3 years ago

Hi, thanks for the issue!

I'm open to adding support for it as a flake plugin if you (or someone else) would like to submit a pull request.