From b968f89c27dd072aa1c1190a451863dcf495d735 Mon Sep 17 00:00:00 2001 From: Alex Carney Date: Sat, 27 Jan 2024 18:10:27 +0000 Subject: [PATCH] lsp-devtools: Move pyright settings into `pyproject.toml` --- lib/lsp-devtools/pyproject.toml | 39 ++++++++++++++++------------- lib/lsp-devtools/pyrightconfig.json | 3 --- 2 files changed, 22 insertions(+), 20 deletions(-) delete mode 100644 lib/lsp-devtools/pyrightconfig.json diff --git a/lib/lsp-devtools/pyproject.toml b/lib/lsp-devtools/pyproject.toml index d1b0168..32d4998 100644 --- a/lib/lsp-devtools/pyproject.toml +++ b/lib/lsp-devtools/pyproject.toml @@ -11,25 +11,25 @@ requires-python = ">=3.8" license = { text = "MIT" } authors = [{ name = "Alex Carney", email = "alcarneyme@gmail.com" }] classifiers = [ - "Development Status :: 3 - Alpha", - "License :: OSI Approved :: MIT License", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: 3.11", - "Programming Language :: Python :: 3.12", + "Development Status :: 3 - Alpha", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] dependencies = [ - "aiosqlite", - "importlib-resources; python_version<\"3.9\"", - "platformdirs", - "pygls>=1.1.0", - "stamina", - "textual>=0.41.0", - "typing-extensions; python_version<\"3.8\"", + "aiosqlite", + "importlib-resources; python_version<\"3.9\"", + "platformdirs", + "pygls>=1.1.0", + "stamina", + "textual>=0.41.0", + "typing-extensions; python_version<\"3.8\"", ] [project.urls] @@ -52,6 +52,11 @@ sort = "Cover" force_single_line = true profile = "black" +[tool.pyright] +venv = ".env" +include = ["lsp_devtools"] +pythonVersion = "3.8" + [tool.towncrier] filename = "CHANGES.md" directory = "changes/" diff --git a/lib/lsp-devtools/pyrightconfig.json b/lib/lsp-devtools/pyrightconfig.json deleted file mode 100644 index 0622ac8..0000000 --- a/lib/lsp-devtools/pyrightconfig.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "venv": ".env" -}