[低] 未使用的导入与模块级符号(pyflakes)

Open Beginner friendly
#41 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
Half a day
Newbie friendliness
78/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
desktop

Research direction

Run pyflakes windows/birdlock windows/tests to reproduce the list, then work file by file from windows/birdlock/core/util.py and core/frames.py outward to the app/ modules. Before deleting a name, check whether it is a deliberate re-export or optional-import flag (HAVE_HEIF, _TAG, optnorm), since those can be referenced elsewhere or on other platforms. Done means pyflakes is clean apart from the PyInstaller-injected SPECPATH/Analysis globals.

Written by the indexing model from the issue text.

Description

位置:windows/birdlock/core/util.py:13(rot)、:26(percentile)、core/frames.py:32(_TAG)、:22-24(HAVE_HEIF)、app/theme.py:8-9(CARD/CARD_STROKE)、core/video_stabilization.py:228(rotation)、:196(optnorm);以及 cli.py:12,52、core/diagnostics.py:8、core/exporter.py:21、core/custom_tracking.py:8、core/aircraft_sequence.py:13、core/cache_policy.py:2、app/main_window.py:11,20、app/preview.py:10、app/inspector.py:10,17、app/state.py:21,37、app/project_workspace.py:5,30、app/video_import.py:5、app/export_regression.py:2、app/project_regression.py:7,171 的未使用导入,windows/tests/ 中也有若干。

复现:pyflakes windows/birdlock windows/tests。

建议:按清单清理(BirdLock.spec 报的 SPECPATH/Analysis 等是 PyInstaller 注入的全局名,不是问题)。

来源:2026-11-15 全仓只读审计,PR #7 未包含此项。 未在 Windows 实机复现,复现路径由代码审计推得。

Dominant language
Swift
Stars
2
Forks
2
Avg merge
1h 11m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cyandee/BirdLock

All issues in cyandee/BirdLock

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.