Bunsly / JobSpy

Jobs scraper library for LinkedIn, Indeed, Glassdoor & ZipRecruiter
https://usejobspy.com
MIT License
555 stars 109 forks source link

format: Apply Black formatter to the codebase #127

Closed VitaminB16 closed 3 months ago

VitaminB16 commented 3 months ago

Applied Black formatter to the codebase.

All logic is completely untouched, but some small juggling was made in some places to reduce the number of lines.

Also added text to the error messages (for logger.error(err)).

I hope this number of changes does not mess up anything you are working on at the moment, though it should be modular enough to make merging easier.

cullenwatson commented 3 months ago

Is there a script we could add to format the code before any commits?

VitaminB16 commented 3 months ago

Yes it is possible with a pre-commit, I can add a commit for it now

VitaminB16 commented 3 months ago

Now to use this pre-commit the developer needs to install it using pre-commit install. Then if a changed file is not formatted correctly, pre-commit will add the formatted files as unstaged changes, which will need to be staged and recommitted.

cullenwatson commented 3 months ago

sick!!