Five scripts repeat the same try/except import of ghcall
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Read the import blocks in scripts/check_contributors.py, check_traction.py, check_issue_refs.py, draft_metrics_row.py, and update_weekly_issue.py, then inspect tests/test_declared_dependencies.py. Choose one shared way to support both test imports and script execution, and remove the special case. Done when none of the five scripts uses the try/except import and the dependency test no longer lists scripts as local.
Written by the indexing model from the issue text.
Description
Where: scripts/check_contributors.py, check_traction.py, check_issue_refs.py, draft_metrics_row.py, update_weekly_issue.py.
Current gap: Each begins with try: from scripts.ghcall import ... except ImportError: from ghcall import ... so it works both imported by tests and run as a script, and tests/test_declared_dependencies.py needed a special case to treat scripts and every scripts/*.py stem as local.
Suggested approach: Pick one mechanism (for example putting the repository root on sys.path in one shared line, or making scripts runnable with python -m) and remove the repetition and the test special case.
Done when: no script has the try/except and the dependency test no longer lists scripts as local.
- Dominant language
- HTML
- Stars
- 47
- Forks
- 45
- Avg merge
- 2h 50m
- Merged PRs (30d)
- 85
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from yakew7/Fair-Code
-
community
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
community
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day
-
check_contributors.py --stub cannot write the closing issue numberPossibly taken @obethgeoff10c-ops claimed this 1 day ago. Opencommunity enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
yakew7/Fair-Code#1308 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
community enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
The generated-files builder timeout cannot be changedPossibly taken @renuvenugopal178 claimed this 3 days ago. Openenhancement good first issue tooling
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yakew7/Fair-Code#1306 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
All issues in yakew7/Fair-Code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 76/100
mason-org/mason-registry#17976 ·
Maintainers usually reply within 1 day
-
agent-os ai bug good first issue help wanted
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area: documentation good first issue package: rule-data status: accepting prs
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day