-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4256351
commit 4c6cb8a
Showing
3 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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,13 +1,22 @@ | ||
#!/bin/bash | ||
set -euxo pipefail | ||
|
||
# isort suspended till the CI-vs-local issue is resolved | ||
# isort cities/ tests/ | ||
# isort suspended as conflicting with black | ||
# nbqa isort docs/guides/ | ||
|
||
|
||
# this sometimes conflicts with black but does some | ||
# preliminary import sorting | ||
# and is then overriden by black | ||
isort cities/ tests/ | ||
|
||
black ./cities/ ./tests/ ./docs/guides/ | ||
|
||
black docs/guides/ | ||
|
||
black cities/ tests/ | ||
autoflake --remove-all-unused-imports --in-place --recursive ./cities ./tests | ||
|
||
nbqa autoflake --remove-all-unused-imports --recursive --in-place docs/guides/ | ||
# nbqa isort docs/guides/ | ||
nbqa black docs/guides/ | ||
nbqa autoflake --nbqa-shell --remove-all-unused-imports --recursive --in-place docs/guides/ | ||
|
||
#nbqa black docs/guides/ | ||
|
This file contains 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 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 @@ | ||
#!/bin/bash | ||
|
||
INCLUDED_NOTEBOOKS="docs/guides/ docs/testing_notebooks/" | ||
INCLUDED_NOTEBOOKS="docs/guides/ " # docs/testing_notebooks/" will revert when the pyro-ppl 1.9 bug is fixed | ||
|
||
CI=1 pytest -v --nbval-lax --dist loadscope -n auto $INCLUDED_NOTEBOOKS |