Skip to content
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

Upgrade isort #7539

Merged
merged 12 commits into from
Sep 10, 2020
Merged

Upgrade isort #7539

merged 12 commits into from
Sep 10, 2020

Conversation

AlexandreYang
Copy link
Member

@AlexandreYang AlexandreYang commented Sep 8, 2020

What does this PR do?

Upgrade isort

Motivation

Was previously capped due to PyCQA/isort#1278 , but it's solved now.

@@ -40,6 +40,7 @@ default_section = 'THIRDPARTY'
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = 'datadog_checks'
Copy link
Member Author

Choose a reason for hiding this comment

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

note: datadog_test_lib can also be considered known_first_party, but this can be done in another PRs to reduce the changelog for this PR. The goal of this PR is mainly about upgrading isort version.

pyproject.toml Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Sep 8, 2020

Codecov Report

Merging #7539 into master will decrease coverage by 1.41%.
The diff coverage is 44.44%.

Impacted Files Coverage Δ
...dog_checks_base/datadog_checks/base/checks/base.py 85.21% <ø> (ø)
...ase/datadog_checks/base/utils/subprocess_output.py 0.00% <0.00%> (ø)
datadog_checks_base/tests/test_pdhbasecheck.py 36.25% <0.00%> (ø)
datadog_checks_base/tests/test_winpdh.py 40.81% <0.00%> (ø)
datadog_checks_base/datadog_checks/base/ddyaml.py 59.70% <50.00%> (ø)
disk/datadog_checks/disk/disk.py 87.25% <100.00%> (+3.58%) ⬆️
pgbouncer/datadog_checks/pgbouncer/pgbouncer.py 76.80% <100.00%> (ø)
process/tests/test_process.py 88.99% <100.00%> (ø)
...checks_dev/datadog_checks/dev/tooling/constants.py 93.54% <0.00%> (-3.01%) ⬇️
...tadog_checks_dev/datadog_checks/dev/tooling/git.py 75.00% <0.00%> (-1.29%) ⬇️
... and 288 more

pyproject.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@kayayarai kayayarai left a comment

Choose a reason for hiding this comment

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

No docs impact

@@ -139,7 +139,7 @@ def add_style_formatter(config, sections, make_envconfig, reader):
# Run formatter AFTER sorting imports
'commands': '\n'.join(
[
'isort --recursive .',
Copy link
Member Author

Choose a reason for hiding this comment

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

note: --recursive is not necessary anymore for isort v5

Copy link
Contributor

@ofek ofek left a comment

Choose a reason for hiding this comment

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

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants