Daniel Brötzmann pushed to branch master at gajim / python-nbxmpp


Commits:
a4c6900e by wurstsalat at 2025-02-24T20:25:06+01:00
ci: Add pyright and pyright config

- - - - -


2 changed files:

- .gitlab-ci.yml
- pyproject.toml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -36,6 +36,17 @@ test-ruff:
     - ruff check .
   interruptible: true
 
+test-pyright:
+  stage: test
+  rules:
+    - changes:
+      - "**/*.py"
+  script:
+    - pip install git+https://github.com/pygobject/pygobject-stubs.git
+    - pyright --version
+    - pyright
+  interruptible: true
+
 build-unix:
   stage: build
   dependencies: []


=====================================
pyproject.toml
=====================================
@@ -55,6 +55,46 @@ reportUnnecessaryTypeIgnoreComment = "error"
 reportPropertyTypeMismatch = "error"
 reportMissingModuleSource = "none"
 
+exclude = [
+  "**/__pycache__",
+  ".git",
+  ".venv",
+  "build",
+  "nbxmpp/modules",
+  "nbxmpp/third_party/hsluv.py",
+  "nbxmpp/addresses.py",
+  "nbxmpp/client.py",
+  "nbxmpp/const.py",
+  "nbxmpp/dispatcher.py",
+  "nbxmpp/errors.py",
+  "nbxmpp/http.py",
+  "nbxmpp/old_dispatcher.py",
+  "nbxmpp/plugin.py",
+  "nbxmpp/protocol.py",
+  "nbxmpp/sasl.py",
+  "nbxmpp/simplexml.py",
+  "nbxmpp/smacks.py",
+  "nbxmpp/structs.py",
+  "nbxmpp/tcp.py",
+  "nbxmpp/util.py",
+  "nbxmpp/websocket.py",
+  "test"
+]
+
+include = [
+  "nbxmpp/modules/base.py",
+  "nbxmpp/modules/bits_of_binary.py",
+  "nbxmpp/modules/chat_markers.py",
+  "nbxmpp/modules/correction.py",
+  "nbxmpp/modules/date_and_time.py",
+  "nbxmpp/modules/fallback.py",
+  "nbxmpp/modules/http_auth.py",
+  "nbxmpp/modules/pgplegacy.py",
+  "nbxmpp/modules/reactions.py",
+  "nbxmpp/modules/replies.py",
+  "nbxmpp/modules/vcard_avatar.py"
+]
+
 [tool.black]
 line-length = 88
 target-version = ["py310", "py311", "py312"]



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/a4c6900edb4e9366c68e791471025c690b59fab9

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/a4c6900edb4e9366c68e791471025c690b59fab9
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to