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

Run black on tutorials #1711

Closed
wants to merge 1 commit into from

Conversation

esantorella
Copy link
Member

Motivation

I am working on fixing up some tutorials. Since I and others work in editors which may auto-reformat code, it is easy to accidentally make a large diff while making a small change, which makes pull requests hard to review. This PR only runs black (with notebook dependencies: pip install black[jupyter]).

Also, this makes formatting a bit nicer -- for example consistently using double quotes and removing some extremely long lines.

Test Plan

I am actually looking at all of the notebooks.

@esantorella esantorella self-assigned this Feb 28, 2023
@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Feb 28, 2023
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Merging #1711 (1d8b78f) into main (e5f4d14) will not change coverage.
The diff coverage is n/a.

❗ Current head 1d8b78f differs from pull request most recent head 30fb0be. Consider uploading reports for the commit 30fb0be to get more accurate results

@@            Coverage Diff            @@
##              main     #1711   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          170       170           
  Lines        14610     14610           
=========================================
  Hits         14610     14610           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@facebook-github-bot
Copy link
Contributor

@esantorella has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@esantorella merged this pull request in ba90c9b.

facebook-github-bot pushed a commit to facebook/Ax that referenced this pull request Mar 7, 2023
Summary:
Same as pytorch/botorch#1711

* Prevents people from accidentally making a large diff while making a small change with an editor that auto-formats code
* Makes things look nicer and more consistent, especially breaking pu some very long lines

Pull Request resolved: #1485

Test Plan: I'm looking over the changed tutorials

Reviewed By: danielcohenlive

Differential Revision: D43772736

Pulled By: esantorella

fbshipit-source-id: 8786b9211e04153aeed9d6d1c82340825a83172d
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. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants