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.

Define "known first party" for imports

See original GitHub issue

For isort, I can define a set of “known first party imports”:

# pyproject.toml

[tool.isort]
known_first_party = ["battlestation", "minchin"]

However, pylance isn’t recognizing this setting, and I can’t find no way to set it myself.

image

So how do I set “first party” modules for import in pylance?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
karrtikrcommented, Sep 1, 2021

Thanks for the bug report! We investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue’s priority.

Thanks for your understanding and patience!

0reactions
karrtikrcommented, Apr 19, 2022

I see, can you please open a new issue using the Python: Report issue command for filling the template. Please also provide the logs:

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

We’re in the process of rewriting isort support as I speak, so a lot of this shouldn’t be an issue soon. Please try using pre-release version of the extension and see if helps:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration options for isort
Known First Party. Force isort to recognize a module as being part of the current python project. Type: List of Strings Default: frozenset()...
Read more >
1st party vs 3rd party · Issue #1057 · PyCQA/isort - GitHub
@zyxue Hello, you can configure isort to recognize modules as first party by using the known_first_party option in the config file or -p...
Read more >
Is there a way for isort to automatically detect firstparty vs ...
isort provides support to treat certain packages as first or third party packages. This is done via options in the config file.
Read more >
How to Use Python isort Library - Simple is Better Than Complex
First party libraries (that is, our project's imports); Local imports. You can achieve this by adding a configuration file in the project root....
Read more >
First Party Data Import - Salesforce Audience Studio Resources
Audience Studio stores any data collected through online mechanisms (including user matching data) for a variable period as defined in the ...
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