-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use black formatting check #186
Conversation
assert ( | ||
utils.delist( | ||
[ | ||
"one", |
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.
"one", | |
"one" |
Then re-run pre-commit run --all-files
[ | ||
"application/gml+xml", | ||
"application/zip", | ||
"application/x-zipped-shp", |
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.
"application/x-zipped-shp", | |
"application/x-zipped-shp" |
"LSJ_LL.zip", | ||
[ | ||
"application/gml+xml", | ||
"application/x-zipped-shp", |
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.
"application/x-zipped-shp", | |
"application/x-zipped-shp" |
run: make lint | ||
if: matrix.python-version == 3.8 | ||
- name: Check formatting with black ⚙️ | ||
run: black --check --target-version py38 birdy tests |
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.
run: black --check --target-version py38 birdy tests | |
run: black --check --target-version py36 birdy tests |
I wouldn't put the conventions up to py38 if we are supporting building on platforms starting at py36. Could potentially introduce new features not supported in python<3.8.
hooks: | ||
- id: black | ||
language_version: python3 | ||
args: ["--target-version", "py38"] |
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.
args: ["--target-version", "py38"] | |
args: ["--target-version", "py36"] |
Overview
This PR fixes adds
black
formatting.Changes:
black
.pre-commit
.setup.cfg
andsetup.py
.Related Issue / Discussion
Additional Information
Links to other issues or sources.