diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml new file mode 100644 index 00000000..4f88a650 --- /dev/null +++ b/.github/workflows/presubmit.yml @@ -0,0 +1,12 @@ +name: Presubmit +on: [push] +jobs: + Presubmit: + runs-on: ubuntu-latest + steps: + - uses: actions/setup-python@v4 + with: + python-version: '3.11' + - uses: actions/checkout@v3 + - run: python3 -m pip install -r requirements-dev.txt + - run: ./check.sh diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..d84cc51b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,6 @@ +[tool.black] +line-length = 79 + +[tool.isort] +profile = "black" +line_length = 79 diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 00000000..7e66a17d --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1 @@ +black