Tighten pyright and pytest warning config deferred from copier template adoption
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start with [tool.pyright] in pyproject.toml, the existing tests/test_records.py and tests/test_autosave.py, and the type-checking tox environment. Run tox -e type-checking to see the pyright errors, then run the test suite with warnings treated as errors. Done means the chosen rules and standard mode are configured, warnings are resolved, and the suite passes on all CI platforms.
索引モデルが issue の本文から書いたものです。
説明
Adopting python-copier-template (PR to follow) adds pyright and the template's pytest config, but to keep that PR free of code changes both are configured leniently. This issue tracks tightening them. The ruff equivalent is #214.
Pyright
The adoption PR runs pyright in basic mode (the template uses standard) with these rules turned off in [tool.pyright] in pyproject.toml:
reportArgumentTypereportAssignmentTypereportAttributeAccessIssuereportOperatorIssuereportOptionalCallreportOptionalMemberAccessreportOptionalSubscriptreportUndefinedVariable(names fromfrom x import *; may need to stay off, or be fixed with explicit__all__/imports)reportUnusedExpressionreportWildcardImportFromLibrary
With those rules on, the current code gives about 155 errors in basic mode and 178 in standard mode. softioc/iocStats (third-party submodule) stays excluded.
pytest warnings
The template sets filterwarnings = "error"; the adoption PR leaves it out because some tests raise warnings, e.g. files left open (ResourceWarning) in tests/test_records.py and tests/test_autosave.py.
Done when
- The disabled pyright rules are re-enabled (or kept off with a stated reason, e.g. star imports) and
tox -e type-checkingpasses. -
typeCheckingModeisstandard, matching the template. - The tests close their files,
filterwarnings = "error"is set, and the suite passes on all CI platforms.
- 主要言語
- Python
- スター
- 47
- フォーク
- 15
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DiamondLightSource/pythonSoftIOC のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
Add CI support and wheels for aarch64?再び着手できるかも @AlexanderWells-diamond が 1363 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンenhancement
DiamondLightSource/pythonSoftIOC#121 · コメント 2 件 · 担当者 1 名 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
DiamondLightSource/pythonSoftIOC の issue をすべて見る
似ている issue
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
MakazhanAlpamys/Soup#3589 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ClickHouse/clickhouse-connect#1266 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
biosustain/growthcurves_app#89 ·
メンテナーはふだん 1 日以内に返信
-
`LogProxyConsumer._on_relation_departed` raises `APIError` when the promtail service does not existオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
canonical/loki-k8s-operator#695 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信