From 98060c4ca018d911e55f4a3c428a36306b9bad56 Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Fri, 21 Oct 2022 22:08:43 +0900 Subject: [PATCH] Add make style (Resolve #42) --- Makefile | 4 ++++ README.md | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1876363..4c321be 100644 --- a/Makefile +++ b/Makefile @@ -35,3 +35,7 @@ markdownlint: lint_node: markdownlint pyright + +style: + find $(TARGET_DIRS) | grep '\.py$$' | xargs black + find $(TARGET_DIRS) | grep '\.py$$' | xargs isort diff --git a/README.md b/README.md index c01a7b4..28d33a0 100644 --- a/README.md +++ b/README.md @@ -100,19 +100,25 @@ You can set ``-n`` and other options. ``` 5. Make fancy updates -6. Run test again and check that no errors occur +6. Make style + + ```bash + poetry run make style + ``` + +7. Run test again and check that no errors occur ```bash poetry run make -j4 ``` -7. Check typos by using [typos](https://github.com/crate-ci/typos). Just run ``typos`` command in the root directory. +8. Check typos by using [typos](https://github.com/crate-ci/typos). Just run ``typos`` command in the root directory. ```bash typos ``` -8. Send Pull requests! +9. Send Pull requests! ## License