Skip to content

Commit

Permalink
Ignore nodeenv when linting
Browse files Browse the repository at this point in the history
  • Loading branch information
origamiman72 committed Jul 19, 2023
1 parent 4b341fd commit 3982253
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ profile = "black"
python_version = "3.8"
ignore_missing_imports = true
warn_unused_configs = true
exclude="viser/client/.nodeenv"

[tool.pyright]
exclude = ["./docs/**/*", "./examples/assets/**/*"]
exclude = ["./docs/**/*", "./examples/assets/**/*", "./viser/client/.nodeenv"]

[tool.black]
exclude = "viser/client/.nodeenv"

[tool.ruff]
select = [
Expand All @@ -99,3 +103,4 @@ ignore = [
"PLW0603", # Globa statement updates are discouraged.
"PLW2901", # For loop variable overwritten.
]
exclude = [ ".nodeenv" ]
2 changes: 1 addition & 1 deletion viser/_viser.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def _install_dependencies():
# Install node
curr_dir = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
client_dir = os.path.join(curr_dir, "client")
env_dir = os.path.join(client_dir, "env")
env_dir = os.path.join(client_dir, ".nodeenv")
args = [sys.executable, "-m", "nodeenv", env_dir]
subprocess.run(args)

Expand Down

0 comments on commit 3982253

Please sign in to comment.