Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Add "fb" option to autoformat script for parlai_fb #3165

Merged
merged 1 commit into from
Oct 7, 2020
Merged

Conversation

moyapchen
Copy link
Contributor

@moyapchen moyapchen commented Oct 7, 2020

'f' was already taken by flake, so I just made the single letter code z

NOTE: I also fixed a bug where running the autoformatter didn't seem to do anything locally by removing the ellipses after "master" in

    CHECK_FILES="$(git $REPO diff --name-only master... | grep '\.py$' | reroot $ROOT | onlyexists | tr '\n' ' ')"

I have no idea if there are side effects on CircleCI or whatnot from doing this.

Testing steps
Add a bunch of empty new lines to the start of files in parlai, parlai_internal, and parlai_fb. Verify that autoformat appropriately removes these lines while running autoformat with no flag, -i, and -z, respectively.

'f' was already taken by flake, so I just made the single letter code `z`

NOTE: I also fixed a bug where running the autoformatter didn't seem to do anything locally by removing the ellipses after "master" in
```
    CHECK_FILES="$(git $REPO diff --name-only master... | grep '\.py$' | reroot $ROOT | onlyexists | tr '\n' ' ')"
```

I have no idea if there are side effects on CircleCI or whatnot from doing this.
Copy link
Contributor

@stephenroller stephenroller left a comment

Choose a reason for hiding this comment

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

Cheers

@moyapchen moyapchen merged commit 0d29158 into master Oct 7, 2020
@moyapchen moyapchen deleted the autoformat_fb branch October 7, 2020 15:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants