Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Change formatting to black #43

Merged
merged 3 commits into from
Jul 4, 2019
Merged

Change formatting to black #43

merged 3 commits into from
Jul 4, 2019

Conversation

mst-ableton
Copy link
Contributor

@AbletonDevTools/gotham-city ptal!

@rco-ableton
Copy link
Contributor

I'd go as far as to remove all customisation from Black (i.e. no skipping of string normalisation and no custom line length). If we're going to use it, let's use it 🙂

@ala-ableton
Copy link
Contributor

I agree with using the default line length (see e092d47), but I disagree with the string "normalisation". We are way more often using double quotes inside single quotes (for JSON, for "highlighting", etc.) than the other way around.

@mst-ableton
Copy link
Contributor Author

@ala-ableton that sounds fine to me. I've squashed and rebased your commits into the latest push (d0e98b6).

Copy link
Contributor

@nre-ableton nre-ableton left a comment

Choose a reason for hiding this comment

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

I would rather see a message like “Pin pipenv version in Dockerfile” for 52fad94. Also, forgive my lazy lack of googling, but I assume that black will not recognize a shared setup.cfg for the config file? If so, it would be nice to use that file rather than making a new one.

Pipfile Outdated Show resolved Hide resolved
This is needed to fix hadolint error DL3013.
@mst-ableton
Copy link
Contributor Author

mst-ableton commented Jul 2, 2019

@nre-ableton unfortunately, black only supports pyproject.toml (see black issue #683). (I checked, the python docker images all have the latest pip installed). From what I understand this is part of a new PEP meant to work with pip: https://snarky.ca/clarifying-pep-518/. Unfortunately flake8 doesn't support pyproject.toml yet, but may in the future: https://gitlab.com/pycqa/flake8/issues/428.

Copy link
Contributor

@nre-ableton nre-ableton left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -14,4 +14,4 @@ pydocstyle = "*"
pylint = "*"

[requires]
python_version = "3.6"
python_version = "3.7"
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't Pipfile.lock also change in the same commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, I'll update.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed as of 8f829c1.

@@ -86,7 +77,7 @@ def get_args():
dest='urls',
required=True,
help='Full URL to the Jenkins master, such as http://jenkins:80. May be given '
'multiple times for multiple masters.',
'multiple times for multiple masters.',
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that I forgot this when I made my fixup.

Copy link
Contributor

Choose a reason for hiding this comment

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

Addressed in a7cba53.

Copy link
Contributor

@rco-ableton rco-ableton left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Copy link
Contributor

@ala-ableton ala-ableton left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@mst-ableton mst-ableton merged commit a85dcd3 into master Jul 4, 2019
@mst-ableton mst-ableton deleted the format branch July 4, 2019 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants