Skip to content

Commit

Permalink
Merge all the lint/style checks to pre-commit hook (#3414)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #3414

Differential Revision: D46536717

Pulled By: mthrok

fbshipit-source-id: 505bdcdd1b59ca9fe5afc2c8516a0a821e2b8d7e
  • Loading branch information
mthrok authored and facebook-github-bot committed Jun 8, 2023
1 parent 5ca03f4 commit c3ca256
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 441 deletions.
310 changes: 0 additions & 310 deletions .circleci/unittest/linux/scripts/run_clang_format.py

This file was deleted.

49 changes: 0 additions & 49 deletions .circleci/unittest/linux/scripts/run_style_checks.sh

This file was deleted.

12 changes: 10 additions & 2 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[flake8]
# Note: it's recommended to use `pre-commit run -a flake8`

max-line-length = 120
ignore = E203,E305,E402,E721,E741,F405,W503,W504,F999
exclude = build,docs/source,_ext,third_party,examples/tutorials
ignore = E203,E402,E741,W503

# Note: exclude is not honnored when flake8 is executed from pre-commit.
# pre-commit has a separate config
exclude = build,docs/src,third_party

per-file-ignores =
examples/tutorials/*.py: E501
Loading

0 comments on commit c3ca256

Please sign in to comment.