Skip to content

Commit

Permalink
Remove unnecessary __init__ files and fix pylance auto-imports (#2648)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment committed Mar 4, 2024
1 parent a0b0649 commit 2bf4570
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
Empty file removed backend/__init__.py
Empty file.
Empty file removed backend/src/__init__.py
Empty file.
Empty file removed backend/tests/__init__.py
Empty file.
5 changes: 4 additions & 1 deletion backend/tests/test_dummy.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
from navi import Image


def test_dummy():
pass
Image(1, 1, 3)
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ line-ending = "auto"

[tool.ruff.lint.pep8-naming]
ignore-names = ["*Input", "*Output", "*Dropdown"]

[tool.pytest.ini_options]
filterwarnings = ["ignore::DeprecationWarning", "ignore::UserWarning"]
pythonpath = ["backend/src"]
3 changes: 3 additions & 0 deletions pyrightconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"include": [
"backend"
],
"extraPaths": [
"backend/src"
],
"exclude": [
"**/__pycache__"
],
Expand Down

0 comments on commit 2bf4570

Please sign in to comment.