Replies: 2 comments 3 replies
-
|
Hmm, interesting... thanks for introducing such a transformative project! I went through a light scour of the documentation this weekend and wasn't a big fan of some of the things it does. I guess it works out well for bigger projects which have tons of programmers who do things different ways, but I really wished it was more configurable. I'll look into it further, and test its outputs, but the strict adherence to beautifying the code I think actually makes it harder to read. Like it has a sample def very_important_function(
template: str,
*variables,
file: os.PathLike,
engine: str,
header: bool = True,
debug: bool = False,
):
"""Applies `variables` to the `template` and writes to `file`."""
with open(file, "w") as f:
...I prefer having TWO spaces for the function definition to show at a glance that it is on a separate level to the body of the function. Their whole quote thing is something that seems to make things more unreadable for the sake of being pedantic. Black standardizes all single quotes into double quotes. I actually thought that it was a great thing that Python allowed using both, because it makes strings more readable. If I have double quotes in my string, I can use single quotes, and vice versa, so I can leave the backslashes at home. PyExifTool does need some stylingAnyways, that's not to say that the code doesn't need styling cleanup. The docstrings for one are a mess right now. My contributions to the project, documentation style and stuff leaves lots to be desired. I'd prefer to get the code more functional (and not brittle), and documentation more complete, before improving the styling |
Beta Was this translation helpful? Give feedback.
-
|
So, ordinarily you would set up a github workflow, like so: https://github.com/jangop/pyexiftool/blob/master/.github/workflows/lint-and-test.yml Then, everything gets checked automatically and you get awesome notifications such as: https://github.com/jangop/pyexiftool/runs/2702057786 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Any opinions on standardizing the existing code base? Or, rather, a lack of opinions?
I feel that it would make contributing much easier and to avoid wasting anything on discussions, my suggestion is to include a github workflow to run Black.
Beta Was this translation helpful? Give feedback.
All reactions