-
Notifications
You must be signed in to change notification settings - Fork 812
prepare repo for auto-formatters #1546
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
Merged
Merged
Changes from 25 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
bd2998a
prepare repo for aut-formatters
pmeier ce9adea
fix CircleCI config
pmeier 169b66d
reactivate lint jobs
pmeier b3194ad
install libtinfo for linting c code
pmeier 207906e
disable git diff for required action
pmeier 561da34
fix config
pmeier a63c6c8
fix clang format
pmeier a8f3258
fix lint failure behavior
pmeier 8fb0176
fix circleci consistency check
pmeier f04646e
try different failure messages
pmeier c657a2c
change failure format
pmeier 5da9f8b
fix config template
pmeier bc17ab1
use clang-format as pre-commit hook
pmeier 6b94331
fix rev
pmeier e643c57
fix rev
pmeier 4b35cad
rename job from lint to format
pmeier 117a72d
fix step names
pmeier baf4b26
update template
pmeier be0ec70
remove flake8-docstrings
pmeier f2dfd94
revert
pmeier 4e1730a
remove pydocstyle job
pmeier 41d644d
remove pyupgrade as hook
pmeier 751745b
add usage explanation to contributing guide
pmeier ced0e2d
Merge branch 'main' into pre-commit
pmeier eccdc70
remove docstring job remnants
pmeier 6769019
add explanation of clang-format to contribution guide
pmeier e707a17
remove flake8 from unittest environments
pmeier bb3d1b1
apply changes from auto formatters
pmeier 3a304ce
Change Black and usort version to match Meta's internal version
abhinavarora f4e0535
Add formatting changes after changing black and usort version
abhinavarora 1f90bc5
Add .clang-format to ensure clang changes align with Meta's internal …
abhinavarora 88ed954
Add clang-format changes
abhinavarora b86c069
Merge branch 'main' into pre-commit
abhinavarora 17d3337
Merge main into branch
abhinavarora 314387b
Merge branch 'main' into pre-commit
abhinavarora 4993090
Run pre-commit after merge
abhinavarora f75495e
Run clang-format after merge
abhinavarora b1e3a69
Fix regenerate.py merge conflict
abhinavarora 8a12398
Fix merge issue
abhinavarora File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[flake8] | ||
# E501 is not flexible enough, we're using B950 instead. Consistent with pytorch | ||
ignore = E402,E722,W503,W504,F821,E501 | ||
ignore = E401,E402,E501,E722,W503,W504,F821,B006,B007,B008,B009 | ||
pmeier marked this conversation as resolved.
Show resolved
Hide resolved
|
||
select = D417 # Missing argument descriptions in the docstring | ||
max-line-length = 120 | ||
exclude = docs/source,third_party |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
args: | ||
- --fix=lf | ||
- id: end-of-file-fixer | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.5.1 | ||
hooks: | ||
- id: prettier | ||
types_or: | ||
- markdown | ||
- toml | ||
- yaml | ||
|
||
- repo: https://github.com/omnilib/ufmt | ||
rev: v1.3.1 | ||
hooks: | ||
- id: ufmt | ||
additional_dependencies: | ||
- black == 21.12b0 | ||
- usort == 1.0.1 | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: | ||
- flake8-docstrings == 1.6.0 | ||
pmeier marked this conversation as resolved.
Show resolved
Hide resolved
|
||
args: | ||
- --config=.flake8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
packaging/* | ||
pmeier marked this conversation as resolved.
Show resolved
Hide resolved
|
||
.circleci/config.yml | ||
pmeier marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
proseWrap: always | ||
printWidth: 120 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.