Skip to content

Commit 5f0edb9

Browse files
pmeierNicolasHug
andauthored
Add ufmt (usort + black) as code formatter (#4384)
* add ufmt as code formatter * cleanup * quote ufmt requirement * split imports into more groups * regenerate circleci config * fix CI * clarify local testing utils section * use ufmt pre-commit hook * split relative imports into local category * Revert "split relative imports into local category" This reverts commit f2e224c. * pin black and usort dependencies * fix local test utils detection * fix ufmt rev * add reference utils to local category * fix usort config * remove custom categories sorting * Run pre-commit without fixing flake8 * got a double import in merge Co-authored-by: Nicolas Hug <[email protected]>
1 parent e45489b commit 5f0edb9

File tree

183 files changed

+8434
-7338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+8434
-7338
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.circleci/config.yml.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
pip install --user --progress-bar off types-requests
202202
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
203203
pip install --user --progress-bar off git+https://github.com/pytorch/data.git
204-
pip install --user --progress-bar off --editable .
204+
pip install --user --progress-bar off --no-build-isolation --editable .
205205
mypy --config-file mypy.ini
206206

207207
docstring_parameters_sync:
@@ -235,7 +235,7 @@ jobs:
235235
command: |
236236
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
237237
# need to install torchvision dependencies due to transitive imports
238-
pip install --user --progress-bar off .
238+
pip install --user --progress-bar off --no-build-isolation .
239239
pip install pytest
240240
python test/test_hub.py
241241

@@ -248,7 +248,7 @@ jobs:
248248
command: |
249249
pip install --user --progress-bar off --pre torch -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
250250
# need to install torchvision dependencies due to transitive imports
251-
pip install --user --progress-bar off .
251+
pip install --user --progress-bar off --no-build-isolation .
252252
pip install --user onnx
253253
pip install --user onnxruntime
254254
pip install --user pytest

0 commit comments

Comments
 (0)