Replace with standard libraries such as pathlib
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Begin with src/commoncode/paths.py and src/commoncode/filetype.py, then inspect how their path and file-type behavior is used elsewhere. Identify the portions that can be replaced by Python's pathlib while preserving existing behavior, and run the repository's available tests to verify the refactor.
Written by the indexing model from the issue text.
Description
A lot of the code in certain files, such as src/commoncode/paths.py and src/commoncode/filetype.py and possible others can be replaced by standard methods from the pathlib module. This has a few benefits:
- less maintenance on your part
pathlibhas seen more testing than your code- possible optimisations in
pathlib
- Dominant language
- Python
- Stars
- 4
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
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
- 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 aboutcode-org/commoncode
-
Consider that Resource.parent can be None when removing resources from the codebasePossibly taken @Mirochill claimed this 177 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
aboutcode-org/commoncode#84 ·
-
Click 8.5.0: omitted boolean flags incorrectly trigger conflicting_options validationPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 66/100
aboutcode-org/commoncode#112 ·
-
Revisit cliutils.pyOpen
Difficulty 4/5 3-5 days Newbie friendliness 35/100
aboutcode-org/commoncode#102 · 1 comment ·
-
mass-scan: Create library to collect a whole project version from Software HeritageMay be free again @chinyeungli claimed this 264 days ago, and no pull request is open. Open
aboutcode-org/commoncode#77 · 7 comments · 1 assignee ·
-
Fix DeprecationWarning in timeutils.py and archive.pyPossibly taken @shashank-tomar0 claimed this 10 days ago. Opengood first issue
Difficulty 3/5 1-2 days Newbie friendliness 42/100
aboutcode-org/commoncode#75 · 1 comment ·
All issues in aboutcode-org/commoncode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
GoogleCloudPlatform/professional-services-data-validator#1899 ·
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
bketelsen/truenas-mcp#77 ·
Maintainers usually reply within 1 day
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOpen
Difficulty 1/5 Under an hour Newbie friendliness 86/100
sandbox-quantum/switch#2163 ·
Maintainers usually reply within 1 day