-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[openfl.experimental] Add scripts for lint and format
Signed-off-by: Shah, Karan <[email protected]>
- Loading branch information
1 parent
5e3af9b
commit f23f7a1
Showing
3 changed files
with
29 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[tool.black] | ||
line-length = 80 | ||
|
||
[tool.isort] | ||
profile = "black" | ||
force_single_line = "False" | ||
line_length = 80 |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
base_dir=$(dirname $(dirname $0)) | ||
|
||
# TODO: @karansh1 Apply across all modules | ||
isort --sp "${base_dir}/pyproject.toml" openfl/experimental | ||
|
||
black --config "${base_dir}/pyproject.toml" openfl/experimental | ||
|
||
flake8 --config "${base_dir}/setup.cfg" openfl/experimental |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -Eeuo pipefail | ||
|
||
base_dir=$(dirname $(dirname $0)) | ||
|
||
# TODO: @karansh1 Apply across all modules | ||
isort --sp "${base_dir}/pyproject.toml" --check openfl/experimental | ||
|
||
black --config "${base_dir}/pyproject.toml" --check openfl/experimental | ||
|
||
flake8 --config "${base_dir}/setup.cfg" openfl/experimental |