Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format code #53

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from
Open

Format code #53

wants to merge 13 commits into from

Conversation

TimoGuenther
Copy link
Collaborator

Closes #52.

@TimoGuenther TimoGuenther marked this pull request as ready for review July 18, 2022 09:24
@carlculator
Copy link
Owner

This is a great request. I mainly hesitated to enforce the linting, because of URIs in docstrings, such as:

the frequency of the timestamp series, `pandas offset aliases <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`_
that break max line length rule. I wasn't able to come up with a good fix for that up to this point. How is this handled here? Besides, I was also a bit lazy with formatting at some point, as you already have noticed, while the contribution guideline expects us to actually care about it.

So all in all: Great initiative, highly appreciated. As discussed in #54 (comment), I have a few more things that I like to add. Therefore I'd suggest to wait with this just for a little and then do the reformatting in a single pass.

@TimoGuenther
Copy link
Collaborator Author

Cheers! :) Black did not touch these long docstrings, but fixes many other things. flake8 would complain, but that is not part of this PR.

If you are worried about merge conflicts, just accept your own changes and let pre-commit handle reformatting everything again. That way, these changes can get merged quickly for the CI benefit.

@carlculator carlculator self-assigned this Jul 18, 2022
Timo Günther and others added 7 commits August 15, 2022 16:06
# Conflicts:
#	requirements_dev.txt
#	setup.py
#	timeseriesx/__init__.py
#	timeseriesx/base/timestamp_series.py
#	timeseriesx/mixins/time_zone.py
#	timeseriesx/mixins/unit.py
# Conflicts:
#	setup.py
#	tests/test_timeseriesx.py
#	timeseriesx/base/timestamp_series.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Format code
2 participants