From 79373c1b7efcc72784167dac14dc336bce0d53a1 Mon Sep 17 00:00:00 2001 From: Dong-Young Kim <31337.persona@gmail.com> Date: Wed, 1 Mar 2023 18:49:53 +0900 Subject: [PATCH 1/2] build: add `pyproject.toml` for formatters configuration --- pyproject.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..88c3fba --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,12 @@ +[tool.black] +line-length = 88 +include = '\.pyi?$' +extend-exclude = ''' +( + migrations +) +''' + +[tool.isort] +extend_skip = ["migrations"] +profile = "black" From 4be792f97cf53a94239ec9e8a858a4015f09cce5 Mon Sep 17 00:00:00 2001 From: Dong-Young Kim <31337.persona@gmail.com> Date: Wed, 1 Mar 2023 18:54:45 +0900 Subject: [PATCH 2/2] ci: update formatter cli options --- .github/workflows/deploy_on_dev.yml | 2 +- .github/workflows/deploy_on_prod.yml | 2 +- .github/workflows/pull-request-merge-precondition.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_on_dev.yml b/.github/workflows/deploy_on_dev.yml index f459ba9..5683233 100644 --- a/.github/workflows/deploy_on_dev.yml +++ b/.github/workflows/deploy_on_dev.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v2 - uses: psf/black@stable with: - options: "--check --verbose --exclude migrations" + options: "--check --verbose" - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 diff --git a/.github/workflows/deploy_on_prod.yml b/.github/workflows/deploy_on_prod.yml index 94fa814..d46d3ed 100644 --- a/.github/workflows/deploy_on_prod.yml +++ b/.github/workflows/deploy_on_prod.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v2 - uses: psf/black@stable with: - options: "--check --verbose --exclude migrations" + options: "--check --verbose" - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 diff --git a/.github/workflows/pull-request-merge-precondition.yml b/.github/workflows/pull-request-merge-precondition.yml index ddad109..9d4c5c9 100644 --- a/.github/workflows/pull-request-merge-precondition.yml +++ b/.github/workflows/pull-request-merge-precondition.yml @@ -22,11 +22,11 @@ jobs: - uses: psf/black@stable with: - options: "--check --verbose --exclude migrations" + options: "--check --verbose" - uses: isort/isort-action@master with: - configuration: "--check-only --diff --profile black" + configuration: "--check-only --diff" requirementsFiles: "requirements.txt" - name: install dependencies