Skip to content

Conversation

@hluk
Copy link
Contributor

@hluk hluk commented Jun 21, 2022

No description provided.

@hluk hluk force-pushed the support-github-draft branch from 868e5b6 to b8531d8 Compare June 22, 2022 07:58
@hluk
Copy link
Contributor Author

hluk commented Aug 24, 2022

@pbortlov Please review.

@hluk hluk force-pushed the support-github-draft branch from 735ca86 to d0daf80 Compare October 26, 2022 13:17
Comment on lines +40 to +45
[testenv:black-format]
skip_install = true
deps =
black
commands =
black reviewrot/ test/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So for context, this project previously didn't have any flake8 or black linting.
I wrote a previous patch to PEP8 bomb the project, and added these linters to Tox.

My concern here is how this black-format would auto format, and I'm not 100% sure that's the best approach.

I'd rather see folks use Tox locally, prior to pushing, and amend their commits if necessary. That way all code changes are tracked by a commit end-to-end, and not modified in-flight. Besides that, I also wonder what happens when folks GPG sign commits that get modified by a workflow, does the attestation get lost in translation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tox -e black-format is only meant to be run manually (not triggered with tox). It is just a shortcut to the specific black command so you do not need to remember it (or install the utility).

tox -e black should run automatically and fail if reformat is needed (we use this approach in other internal repos too).

@hluk hluk force-pushed the support-github-draft branch from 4cd4fb4 to 4838eaa Compare February 16, 2023 06:52
hluk added 7 commits February 16, 2023 07:55
Fixes the following warning:

    reviewrot/gitlabstack.py:227: UserWarning: Calling a `list()` method
    without specifying `get_all=True` or `iterator=True` will return a
    maximum of 20 items.
@hluk hluk force-pushed the support-github-draft branch from 4838eaa to a2254de Compare February 16, 2023 06:55
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.

3 participants