From 8ee44e19a4a335663daf835eb735a78fe986f7e7 Mon Sep 17 00:00:00 2001 From: Hiroshi Horii Date: Tue, 25 Oct 2022 21:55:22 +0900 Subject: [PATCH] add pre-commit into workflow and requirements-dev.txt --- .github/workflows/pre-commit.yml | 14 ++++++++++++++ requirements-dev.txt | 1 + 2 files changed, 15 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000000..04f86a39b7 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,14 @@ +name: pre-commit + +on: + pull_request: + push: + branches: [main] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.0 \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt index 9b8e38c743..3b6079fb51 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -13,3 +13,4 @@ sphinx-automodapi jupyter-sphinx reno>=3.4.0 ddt>=1.2.0,!=1.4.0 +pre-commit