From b47248b4c6f9d202d20a8dd0138ba08f5ae26dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 20 Mar 2023 12:11:57 +0100 Subject: [PATCH] Fix new error with attr in pull request check workflow --- .github/workflows/pr-checks.yaml | 1 + .pre-commit-config.yaml | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.github/workflows/pr-checks.yaml b/.github/workflows/pr-checks.yaml index fce4fa22f..0a829bc4a 100644 --- a/.github/workflows/pr-checks.yaml +++ b/.github/workflows/pr-checks.yaml @@ -20,6 +20,7 @@ jobs: timeout-minutes: 5 steps: + - run: pip install --upgrade attrs - uses: actions/checkout@v3 - run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..2d501ac60 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,7 @@ +repos: + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.7.1 + hooks: + - id: prettier + additional_dependencies: + - prettier@2.8.4