Skip to content

Commit

Permalink
Update lint config (pytorch#2389)
Browse files Browse the repository at this point in the history
Summary:
Following the formatter changes heppened in fbcode, this commit update the linter config.

Pull Request resolved: pytorch#2389

Reviewed By: hwangjeff

Differential Revision: D37659649

Pulled By: mthrok

fbshipit-source-id: 1c52ff93f0b10cb2e7303d2ad13b2d65ffccfcb0
  • Loading branch information
mthrok authored and facebook-github-bot committed Jul 7, 2022
1 parent 09daa43 commit 515fd01
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .circleci/config.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
command: pre-commit install-hooks
- run:
name: Lint Python code and config files
command: pre-commit run --all-files || true
command: pre-commit run --all-files
- run:
name: Required lint modifications
when: always
Expand Down
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ repos:
- id: end-of-file-fixer

- repo: https://github.com/omnilib/ufmt
rev: v1.3.0
rev: v1.3.2
hooks:
- id: ufmt
additional_dependencies:
- black == 21.9b0
- usort == 0.6.4
- black == 22.3
- usort == 1.0.2
- libcst == 0.4.1
exclude: examples
2 changes: 1 addition & 1 deletion docs/source/hw_acceleration_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1524,4 +1524,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit 515fd01

Please sign in to comment.