-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Drop Black as formater from the lint environment in ddev #20451
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
76c1c45
to
2e6e400
Compare
The changelog type |
2e6e400
to
1085961
Compare
The changelog type |
The changelog type |
1085961
to
c5defd7
Compare
The changelog type |
c5defd7
to
cb7923e
Compare
The changelog type |
The changelog type |
cb7923e
to
73c496a
Compare
The changelog type |
73c496a
to
d9c7f24
Compare
The changelog type |
d9c7f24
to
38b8853
Compare
The changelog type |
38b8853
to
962481f
Compare
1d2d609
to
62e6704
Compare
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.
These are the changes introduced in the last iteration. After discussing offline with @iliakur we decided to intercept the output of the command and print the next steps instead of keeping the echos in the command to be run in the hatch environments.
This is how an unsafe fix would look like if found

The last line will be printed in warning format.
81272cc
to
e851b53
Compare
e851b53
to
b5df894
Compare
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.
Left optional suggestions!
b5df894
to
32320e2
Compare
Review from iliakur is dismissed. Related teams and files:
- agent-integrations
- ddev/changelog.d/20451.added
- ddev/changelog.d/20451.changed
- ddev/pyproject.toml
- ddev/release/macos/build_pkg.py
- ddev/src/ddev/cli/dep/updates.py
- ddev/src/ddev/cli/meta/scripts/generate_metrics.py
- ddev/src/ddev/cli/size/historical_metrics.py
- ddev/src/ddev/cli/size/timeline.py
- ddev/src/ddev/cli/size/utils/common_funcs.py
- ddev/src/ddev/cli/test/init.py
- ddev/src/ddev/e2e/agent/docker.py
- ddev/src/ddev/plugin/external/hatch/environment_collector.py
- ddev/src/ddev/utils/platform.py
- ddev/tests/cli/release/test_changelog.py
- ddev/tests/cli/test/test_test.py
- ddev/tests/repo/test_core.py
- ddev/tests/utils/test_structures.py
- pyproject.toml
32320e2
to
4c70675
Compare
4c70675
to
a6f9a43
Compare
Review from iliakur is dismissed. Related teams and files:
- agent-integrations
- ddev/changelog.d/20451.added
- ddev/changelog.d/20451.changed
- ddev/pyproject.toml
- ddev/release/macos/build_pkg.py
- ddev/src/ddev/cli/dep/updates.py
- ddev/src/ddev/cli/meta/scripts/generate_metrics.py
- ddev/src/ddev/cli/size/historical_metrics.py
- ddev/src/ddev/cli/size/timeline.py
- ddev/src/ddev/cli/size/utils/common_funcs.py
- ddev/src/ddev/cli/test/init.py
- ddev/src/ddev/e2e/agent/docker.py
- ddev/src/ddev/plugin/external/hatch/environment_collector.py
- ddev/src/ddev/utils/platform.py
- ddev/tests/cli/env/test_test.py
- ddev/tests/cli/release/test_changelog.py
- ddev/tests/cli/size/test_diff.py
- ddev/tests/cli/size/test_status.py
- ddev/tests/cli/size/test_timeline.py
- ddev/tests/cli/test/test_test.py
- ddev/tests/conftest.py
- ddev/tests/repo/test_core.py
- ddev/tests/utils/test_structures.py
- pyproject.toml
909e654
to
c6fb13a
Compare
c6fb13a
to
8f65df9
Compare
Merging the PR now, will follow up with the one on top of the stack afterwards. |
What does this PR do?
This PR removes the black dependency in the environment collector to allow
Motivation
For some reason we are not using ruff to format and just to lint our code. However, when running in an IDE developers might be using ruff to format on save which is efficient and can be configure in the same way as black. However, quotes follow by default PEP guidelines using double quotes which means that by formatting with ruff from the IDE (like VSCode) string quotes can be modified by mistake.
The current black configuration includes ignoring string quotes but the ruff configuration does not. This PR updates it.
The pydantic version change is done to be in line with the base package.
Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.backport/<branch-name>
label to the PR and it will automatically open a backport PR once this one is merged