roskakori / pygount

count lines of code for hundreds of languages using pygments
https://pygount.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
160 stars 22 forks source link

Switch to using pathlib #89

Open zmievsa opened 2 years ago

zmievsa commented 2 years ago

Goals

Estimate: 8h

Original request

Many parts of the project can be both sped up (though insignificantly) and made more readable by replacing os usage with pathlib usage. File reading/writing can also be made more readable in some places using Path.read_text and Path.write_text. If you have time on your hands, I think investing into this idea would be a good improvement

roskakori commented 2 years ago

Yes, probably a reasonable cleanup at some point.

e-io commented 3 months ago

@snowkoli I am already took it. You may check it in our discord server

@snowkoli Could you take another issue please? I booked this one 90 minutes ago already.

e-io commented 3 months ago

@roskakori This issue has more things to do than I suggested initially. Particularly, because tests also have many os.paths. Replacing them to pathlib leads to some errors, which I must improve.

However, I am interested to finish this. So, I'm gonna to spend next Sunday (July 28th) for this again. If I will not finish it within a couple of months, I'll leave a note here.