Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codefactor/pylint import issue #1

Closed
toonarmycaptain opened this issue Sep 19, 2018 · 2 comments
Closed

Codefactor/pylint import issue #1

toonarmycaptain opened this issue Sep 19, 2018 · 2 comments

Comments

@toonarmycaptain
Copy link

I have a structure:

myproject/
    app_main.py
    my_app_files/
        some_script.py

app_main calls a some_functon from some_script via from my_app_files.some_script #import some_function - which seems to be how PEP8 suggests.
Yet Codacy seems to want met to reform it to from _master.my_app_files.some_script import some_function - which not only doesn't work, it doesn't make a lot of sense, since _master doesn't appear anywhere in my project.

toonarmycaptain/dionysus#5

@toonarmycaptain
Copy link
Author

Curiously, this issue disappeared with another commit which didn't obviously impact or modify that line of code...

@cordis-dev
Copy link
Contributor

cordis-dev commented Sep 20, 2018

@toonarmycaptain Thanks for reporting. The issue - relative-import - was triggered due to __init__.py on root. Root directory name in this context is internal to CodeFactor (_master), so reported issue is not really a good candidate.

You should no longer see these types of issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants