diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-07-02 10:49:24 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-07-02 19:14:30 +0000 |
commit | de397b532a23137e84c2fb86e36b93b5c58c143d (patch) | |
tree | a35522ffbcad26abee046857db12aa1b7dc016f3 /zephyr/zmake | |
parent | e541ebdc9521450ee9ee3fed471cb764786d705c (diff) | |
download | chrome-ec-de397b532a23137e84c2fb86e36b93b5c58c143d.tar.gz |
zephyr: zmake: add formatting configs for isort and flake8
Add black-compatible isort and flake8 configs, as documented here:
https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html
BUG=b:192389533
BRANCH=none
TEST=run flake8 and isort
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I744011f03ff2dfde07d940aa568ccbe7fba67f55
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3002835
Commit-Queue: Yuval Peress <peress@chromium.org>
Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'zephyr/zmake')
-rw-r--r-- | zephyr/zmake/.flake8 | 9 | ||||
-rw-r--r-- | zephyr/zmake/.isort.cfg | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/zephyr/zmake/.flake8 b/zephyr/zmake/.flake8 new file mode 100644 index 0000000000..0a0a9c29ab --- /dev/null +++ b/zephyr/zmake/.flake8 @@ -0,0 +1,9 @@ +[flake8] +max-line-length = 88 +extend-ignore = E203 +exclude = + .hypothesis, + .pytest_cache, + __pycache__, + build, + dist diff --git a/zephyr/zmake/.isort.cfg b/zephyr/zmake/.isort.cfg new file mode 100644 index 0000000000..b9fb3f3e8c --- /dev/null +++ b/zephyr/zmake/.isort.cfg @@ -0,0 +1,2 @@ +[settings] +profile=black |