From afc3ab14120e26907c75a6c15248c6fbd7d628c2 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Mon, 24 Feb 2025 10:27:31 -0500 Subject: [PATCH 1/2] chore(isort): Ignore `_version.py` --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8d7fc8863..7e593eb21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -117,7 +117,7 @@ dev = [ "google-generativeai;python_version>='3.9'", "langchain_core", # langsmith (needed for langchain_core) versions >= 0.3 - # (up to at least 0.3.2 as of 2025-01-29) + # (up to at least 0.3.2 as of 2025-01-29) # cause an `argparse.ArgumentError` when running `pytest`. # https://github.com/posit-dev/py-shiny/issues/1829 "langsmith<0.3", @@ -158,7 +158,7 @@ ignore = ["E302", "E501", "F403", "F405", "W503", "E203", "E701", "E704"] [tool.isort] profile = "black" -skip = ["__init__.py", "typings/", "_dev/", ".venv", "venv", ".tox", "build"] +skip = ["__init__.py", "typings/", "_dev/", ".venv", "venv", ".tox", "build", "shiny/_version.py"] [tool.mypy] # The goal of our usage of mypy is to make to sure mypy can run, not that it catches any errors (we use pyright to find our errors). From 1a6db4dc4fbd3bbedddf14192e51a447b5f21193 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Mon, 24 Feb 2025 10:54:08 -0500 Subject: [PATCH 2/2] chore: just ignore `_version.py` --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 7e593eb21..2fab88660 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -158,7 +158,7 @@ ignore = ["E302", "E501", "F403", "F405", "W503", "E203", "E701", "E704"] [tool.isort] profile = "black" -skip = ["__init__.py", "typings/", "_dev/", ".venv", "venv", ".tox", "build", "shiny/_version.py"] +skip = ["__init__.py", "typings/", "_dev/", ".venv", "venv", ".tox", "build", "_version.py"] [tool.mypy] # The goal of our usage of mypy is to make to sure mypy can run, not that it catches any errors (we use pyright to find our errors).