question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature request: pyproject.toml intergration

See original GitHub issue

Would be cool if import-linter would intergrate with pyproject.toml (PEP-518).

[tool.importlinter]
root_package = "myproject"

[[tool.importlinter.contract]]
name = "Foo doesn't import bar or baz"
type = "forbidden"
source_modules = [ "myproject.foo" ]
forbidden_modules = [
  "myproject.bar",
  "myproject.baz"
]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
seddonymcommented, Jul 29, 2021

This is now in the latest release 1.2.3. Enjoy!

1reaction
seddonymcommented, Jul 29, 2021

This is now on master. Thanks @kasium for your work and @skarzi for reviewing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

add required black version in pyproject.toml · Issue #1246 · ...
To summarize: pre-config integration is great, but if a contributor doesn't have pre-commit installed, they'll invoke black directly; if ...
Read more >
The pyproject.toml config file
Run python3 -m flit.tomlify to convert a flit.ini file to pyproject.toml . ... TOML features new in version 1.0 require flit_core >=3.4 ....
Read more >
Python and TOML: New Best Friends
Many of your favorite tools rely on TOML for configuration, and you'll use pyproject.toml when you build and distribute your own packages.
Read more >
Support `pyproject.toml` and PEP-518 : PY-42296
PEP-518 defines the pyproject.toml as the new standard for python projects to replace the setup.py file. The standard itself is agnostic of tooling...
Read more >
PEP 517 – A build-system independent format for source trees
An integration frontend is a tool that users might run that takes a ... If the pyproject.toml file is absent, or the build-backend...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found