Refactor all path handling to use pathlib

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

Begin by inventorying path-handling code across all of the repository's tools and read the linked Python pathlib documentation. Completion means replacing path-related handling throughout those tools with pathlib, with no specific files or tests identified in the issue.

Written by the indexing model from the issue text.

Description

Python3's pathlib abstracts path handling and provides functionality which is otherwise not present or scattered across several modules. In addition it overloads operators for easier path joining.

from pathlib import Path

https://docs.python.org/3/library/pathlib.html

We should refactor all path handling in all our tools to use pathlib.

Tasks:

  • Use pathlib for everything path related
Dominant language
Python
Stars
2.1k
Forks
385
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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 mapbox/robosat

All issues in mapbox/robosat

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.