aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2024-02-21 18:55:07 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-21 19:05:37 +0100
commit3f2dd0e60cde8396a4b09f2e5668674f16a40703 (patch)
tree547952c974f190ac372df31d4196dbfd81e8963e
parent234c169658b44b3d52768dcc5c71f6dcc66b64c7 (diff)
downloadwee-slack-3f2dd0e60cde8396a4b09f2e5668674f16a40703.tar.gz
Configure which files pyright runs on in pyproject.toml
Move the configuration of which files pyright should run on from the CI command to pyproject.toml. Pyright is only configured to run on the main files for v3. So don't run it on the files for the old version of wee-slack, and don't run it on the util scripts. Ideally we would run it on the util scripts, but they give a lot of errors now, so we'd have to fix that first.
-rw-r--r--.github/workflows/wee-slack.yml2
-rw-r--r--pyproject.toml1
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/wee-slack.yml b/.github/workflows/wee-slack.yml
index 0069dc1..377c1b4 100644
--- a/.github/workflows/wee-slack.yml
+++ b/.github/workflows/wee-slack.yml
@@ -28,7 +28,7 @@ jobs:
- run: poetry run ruff check
- - run: poetry run pyright main.py slack tests typings
+ - run: poetry run pyright
- run: poetry run pytest tests
diff --git a/pyproject.toml b/pyproject.toml
index 0d3fee3..bf3bcd9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -45,6 +45,7 @@ disable = [
pythonVersion = "3.7"
strict = ["**"]
reportMissingModuleSource = false
+include = ["main.py", "slack", "tests", "typings"]
[tool.ruff]
extend-exclude = ["typings/weechat.pyi", "wee_slack.py", "_pytest"]