-
Notifications
You must be signed in to change notification settings - Fork 64
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
Update to 2024 black style #396
Changes from all commits
fd77d96
a6b7600
4fe1713
aacbb5d
9f60824
f700419
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
-e .[all] | ||
|
||
black[jupyter] | ||
black[jupyter]>=24.1.0;python_version>='3.8' | ||
build | ||
flake8 | ||
ipytest | ||
|
@@ -19,9 +19,8 @@ pandas | |
pillow | ||
psutil | ||
pydantic | ||
pytest | ||
# pytest-cases | ||
git+https://github.com/jayqi/python-pytest-cases@packaging-version | ||
pytest<8 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pytest v8.0.0 literally just released hours ago, and there's some arcane looking error that is probably a pytest-cases incompatibility. I opened an issue: smarie/python-pytest-cases#330 |
||
pytest-cases>=3.7.0 | ||
pytest-cov | ||
pytest-xdist | ||
python-dotenv | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[flake8] | ||
ignore = E731,E266,E501,C901,W503,E203 | ||
ignore = E731,E266,E501,C901,W503,E203,E704 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As noted here, flake8's E704 conflicts with the new concise dummy implementation style |
||
max-line-length = 99 | ||
exclude = | ||
.git, | ||
|
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.
Adding a floor here so that dev environments are consistent.
black has dropped Python 3.7. People shouldn't be doing dev in a 3.7 environment anyways, so skipping black here seems like a good workaround for us to keep the 3.7 tests going for a while.
We should probably consider dropping 3.7 support soon though.