From c9b3eb8e8953f3e9f5a32fe520a562f26323e651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 20 Mar 2023 12:10:15 +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 fce4fa22f47..0a829bc4aa8 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 00000000000..2d501ac6046 --- /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