centreborelli / s2p

Satellite Stereo Pipeline
GNU Affero General Public License v3.0
209 stars 67 forks source link

Support black format for all Python files #128

Closed lionlai1989 closed 1 year ago

lionlai1989 commented 2 years ago

Description

Dear the team of s2p: First, this project is awesome. It's the photogrammetry project that is thorough and comprehensive to follow for everyone who want to enter this field. I propose that this project could follow the PEP 8 – Style Guide for Python Code to make it more friendly and easier to read. Therefore, I would like to introduce the open source python package black into this project. black is the uncompromising Python code formatter, which can help us to save time and mental energy for more important matters and be more efficient in writing code. Developers can contribute to this project in more uniform coding style.

Type of change

The changes of this PR are:

How Has This Been Tested?

This project has been tested with the command, pytest tests/, and all tests pass.

Checklist:

lionlai1989 commented 2 years ago

@gfacciol Could you please review this PR? Thank you.

carlodef commented 2 years ago

Hi @lionlai1989, thanks for contributing!

Is there a way to configure black so that the code style stays closer to that of the original codebase? I think that in its current state this pull request is introducing too many style changes, which may obfuscate code history.

lionlai1989 commented 2 years ago

Hey @carlodef Thanks for replying. Here are some points I can think of for this PR.

Thank you.