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

apply import merging for fbcode/pytorch/botorch (1 of 1) #1166

Closed
wants to merge 1 commit into from

Conversation

Balandat
Copy link
Contributor

Summary:
Applies new import merging and sorting from µsort v1.0.

When merging imports, µsort will make a best-effort to move associated
comments to match merged elements, but there are known limitations due to
the diynamic nature of Python and developer tooling. These changes should
not produce any dangerous runtime changes, but may require touch-ups to
satisfy linters and other tooling.

Note that µsort uses case-insensitive, lexicographical sorting, which
results in a different ordering compared to isort. This provides a more
consistent sorting order, matching the case-insensitive order used when
sorting import statements by module name, and ensures that "frog", "FROG",
and "Frog" always sort next to each other.

For details on µsort's sorting and merging semantics, see the user guide:
https://usort.readthedocs.io/en/stable/guide.html#sorting

Differential Revision: D35552838

Summary:
Applies new import merging and sorting from µsort v1.0.

When merging imports, µsort will make a best-effort to move associated
comments to match merged elements, but there are known limitations due to
the diynamic nature of Python and developer tooling. These changes should
not produce any dangerous runtime changes, but may require touch-ups to
satisfy linters and other tooling.

Note that µsort uses case-insensitive, lexicographical sorting, which
results in a different ordering compared to isort. This provides a more
consistent sorting order, matching the case-insensitive order used when
sorting import statements by module name, and ensures that "frog", "FROG",
and "Frog" always sort next to each other.

For details on µsort's sorting and merging semantics, see the user guide:
https://usort.readthedocs.io/en/stable/guide.html#sorting

Differential Revision: D35552838

fbshipit-source-id: 80892176e45202bd9f5519d7bacd5dd00b02e3f6
@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Apr 12, 2022
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D35552838

@codecov
Copy link

codecov bot commented Apr 12, 2022

Codecov Report

Merging #1166 (330ae69) into main (13f0db7) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #1166   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files         116      116           
  Lines       10003    10002    -1     
=======================================
- Hits        10002    10001    -1     
  Misses          1        1           
Impacted Files Coverage Δ
botorch/acquisition/__init__.py 100.00% <ø> (ø)
botorch/acquisition/input_constructors.py 100.00% <ø> (ø)
botorch/generation/sampling.py 100.00% <ø> (ø)
botorch/__init__.py 100.00% <100.00%> (ø)
botorch/acquisition/acquisition.py 100.00% <100.00%> (ø)
botorch/acquisition/cached_cholesky.py 100.00% <100.00%> (ø)
botorch/acquisition/knowledge_gradient.py 100.00% <100.00%> (ø)
botorch/acquisition/multi_objective/monte_carlo.py 100.00% <100.00%> (ø)
botorch/acquisition/multi_step_lookahead.py 100.00% <100.00%> (ø)
botorch/models/fully_bayesian.py 100.00% <100.00%> (ø)
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13f0db7...330ae69. Read the comment docs.

@Balandat Balandat deleted the export-D35552838 branch September 7, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants