-
Notifications
You must be signed in to change notification settings - Fork 15
Add support for Draft flag on GitHub #126
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
base: master
Are you sure you want to change the base?
Conversation
868e5b6 to
b8531d8
Compare
|
@pbortlov Please review. |
735ca86 to
d0daf80
Compare
| [testenv:black-format] | ||
| skip_install = true | ||
| deps = | ||
| black | ||
| commands = | ||
| black reviewrot/ test/ |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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).
4cd4fb4 to
4838eaa
Compare
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.
4838eaa to
a2254de
Compare
No description provided.