Title: Fix ruff lint findings deferred from copier template adoption · Issue #214 · DiamondLightSource/pythonSoftIOC · GitHub
Open Graph Title: Fix ruff lint findings deferred from copier template adoption · Issue #214 · DiamondLightSource/pythonSoftIOC
X Title: Fix ruff lint findings deferred from copier template adoption · Issue #214 · DiamondLightSource/pythonSoftIOC
Description: Adopting python-copier-template (PR to follow) brings in the template's ruff lint config, but to keep that PR free of code churn it adds temporary ignores. This issue tracks removing them. Assessment (template ruff config against current...
Open Graph Description: Adopting python-copier-template (PR to follow) brings in the template's ruff lint config, but to keep that PR free of code churn it adds temporary ignores. This issue tracks removing them. Assessme...
X Description: Adopting python-copier-template (PR to follow) brings in the template's ruff lint config, but to keep that PR free of code churn it adds temporary ignores. This issue tracks removing them. Asse...
Opengraph URL: https://github.com/DiamondLightSource/pythonSoftIOC/issues/214
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix ruff lint findings deferred from copier template adoption","articleBody":"Adopting python-copier-template (PR to follow) brings in the template's ruff lint config, but to keep that PR free of code churn it adds temporary ignores. This issue tracks removing them.\n\n## Assessment (template ruff config against current master)\n\n407 findings in total:\n\n| Group | Count | Plan |\n|---|---|---|\n| F401 / F403 / F405 (star re-exports) | 182 | Keep ignored permanently, as under flake8: the public API is built from `from x import *` |\n| N8xx / N999 (pep8-naming) | 126 | Keep ignored permanently: public API uses camelCase (`aOut`, `longIn`, `SetDeviceName`, ...) |\n| Auto-fixable (I001 import sorting, UP015/UP004/UP034/UP010/UP041/UP006) | 55 | Mechanical `ruff check --fix`, ~190 changed lines across 26 files |\n| Manual | ~44 | See below |\n\n### Manual findings\n- **SLF001** private-member access (~22 in `softioc/`): `autosave.py`, `builder.py`, `cothread_dispatcher.py`, `device_core.py`, `pythonSoftIoc.py`, `softioc.py`. Mostly intentional intra-package access; decide per site between `# noqa: SLF001`, a per-file ignore, or a small API change.\n- **UP031** `%`-formatting (16): `device_core.py`, `fields.py`, tests.\n- **B905** `zip()` without `strict=`: `builder.py:120`, `device_core.py:76-77`, `tests/test_record_values.py:389`. Pick `strict=True` only where lengths must match.\n- **B006** mutable default argument: `softioc.py:346`.\n- **B026** star-arg after keyword: `device.py:328,331`.\n- **E721** type comparison: `builder.py:209`.\n- **B007** unused loop variable: `tests/test_records.py:248`.\n- C4 (C408/C416/C402): one each.\n\n(Counts from master at 4cb7ce4; findings in `_version_git.py` drop out if it is replaced by setuptools_scm.)\n\n## Done when\n- The temporary ignores (I001, UP, SLF001, B, C4, E721) are removed from `[tool.ruff.lint]` in `pyproject.toml`, leaving only the permanent N and F401/F403/F405 ignores.\n- `ruff check .` passes and the test suite is green.\n- Suggested split: one commit for `ruff check --fix` (safe fixes only), then separate commits for the manual groups, so behavioural ones (B905, B006, B026, E721) are easy to review.\n","author":{"url":"https://github.com/gilesknap","@type":"Person","name":"gilesknap"},"datePublished":"2026-11-10T11:15:02Z","url":"https://github.com/DiamondLightSource/pythonSoftIOC/issues/214"}
| 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:01db81a7-aa2e-4a7c-10cd-096bb91e7bc7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2DE:241F93:B98B81:1047CFA:6B0437B2 |
| html-safe-nonce | ab6884d27ae5ccf2646c256843398c8c4edd86439d40723b615286cb6d489001 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkRFOjI0MUY5MzpCOThCODE6MTA0N0NGQTo2QjA0MzdCMiIsInZpc2l0b3JfaWQiOiI3NTMwNTYyMjkxNTUzODEwMzU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dc4bbc29aa1e68601626ce389002f6025bd25ef7aabf964c741c1e1e25f89510 |
| hovercard-subject-tag | issue:6305689182 |
| 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/214/issue_layout |
| twitter:image | https://opengraph.githubassets.com/80433aee5bc0dec7301254c332bc308045c82e4852427a403a444ae4271fed65/DiamondLightSource/pythonSoftIOC/issues/214 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/80433aee5bc0dec7301254c332bc308045c82e4852427a403a444ae4271fed65/DiamondLightSource/pythonSoftIOC/issues/214 |
| og:image:alt | Adopting python-copier-template (PR to follow) brings in the template's ruff lint config, but to keep that PR free of code churn it adds temporary ignores. This issue tracks removing them. Assessme... |
| 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