Title: Tighten pyright and pytest warning config deferred from copier template adoption · Issue #215 · DiamondLightSource/pythonSoftIOC · GitHub
Open Graph Title: Tighten pyright and pytest warning config deferred from copier template adoption · Issue #215 · DiamondLightSource/pythonSoftIOC
X Title: Tighten pyright and pytest warning config deferred from copier template adoption · Issue #215 · DiamondLightSource/pythonSoftIOC
Description: 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...
Open Graph Description: 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 th...
X Description: 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 tightenin...
Opengraph URL: https://github.com/DiamondLightSource/pythonSoftIOC/issues/215
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Tighten pyright and pytest warning config deferred from copier template adoption","articleBody":"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.\n\n## Pyright\nThe adoption PR runs pyright in `basic` mode (the template uses `standard`) with these rules turned off in `[tool.pyright]` in `pyproject.toml`:\n\n- `reportArgumentType`\n- `reportAssignmentType`\n- `reportAttributeAccessIssue`\n- `reportOperatorIssue`\n- `reportOptionalCall`\n- `reportOptionalMemberAccess`\n- `reportOptionalSubscript`\n- `reportUndefinedVariable` (names from `from x import *`; may need to stay off, or be fixed with explicit `__all__`/imports)\n- `reportUnusedExpression`\n- `reportWildcardImportFromLibrary`\n\nWith 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.\n\n## pytest warnings\nThe 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`.\n\n## Done when\n- [ ] The disabled pyright rules are re-enabled (or kept off with a stated reason, e.g. star imports) and `tox -e type-checking` passes.\n- [ ] `typeCheckingMode` is `standard`, matching the template.\n- [ ] The tests close their files, `filterwarnings = \"error\"` is set, and the suite passes on all CI platforms.\n","author":{"url":"https://github.com/gilesknap","@type":"Person","name":"gilesknap"},"datePublished":"2026-11-10T11:34:10Z","url":"https://github.com/DiamondLightSource/pythonSoftIOC/issues/215"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3ae1443c-347d-a6c7-9e64-4def09809ad7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B140:1525E:C0942A:10D49CB:6B043724 |
| html-safe-nonce | c5aa672ccc2dd74d44493d1e69c4041505f09f55d054e3433870d985d54c2045 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTQwOjE1MjVFOkMwOTQyQToxMEQ0OUNCOjZCMDQzNzI0IiwidmlzaXRvcl9pZCI6IjgzNzgyNzk1Mjg4NjY1MjcwMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56c5cec2a103ae5525adeaf0aa6757b702d744d6852dcaeca0aff77416e4a5b0 |
| hovercard-subject-tag | issue:6305969423 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/DiamondLightSource/pythonSoftIOC/215/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6fe06e2964438b9eb2bee27a2cb71e26c90f4e4fe65efac00d70d9f5c0e3c687/DiamondLightSource/pythonSoftIOC/issues/215 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6fe06e2964438b9eb2bee27a2cb71e26c90f4e4fe65efac00d70d9f5c0e3c687/DiamondLightSource/pythonSoftIOC/issues/215 |
| og:image:alt | 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 th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gilesknap |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/DiamondLightSource/pythonSoftIOC git https://github.com/DiamondLightSource/pythonSoftIOC.git |
| octolytics-dimension-user_id | 1233618 |
| octolytics-dimension-user_login | DiamondLightSource |
| octolytics-dimension-repository_id | 20049394 |
| octolytics-dimension-repository_nwo | DiamondLightSource/pythonSoftIOC |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20049394 |
| octolytics-dimension-repository_network_root_nwo | DiamondLightSource/pythonSoftIOC |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width