Do not run prettier with pre-commit (#3196)

To fix issues with https://github.com/woodpecker-ci/woodpecker/pull/3190

Prettier still runs at woodpecker.

Also fix the duplication in our CI.

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
qwerty287 2024-01-14 21:14:00 +01:00 committed by GitHub
parent 001b5639a6
commit 59d824ebf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 7 deletions

View file

@ -54,5 +54,5 @@ ci:
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: monthly autoupdate_schedule: monthly
# NB: hadolint not included in pre-commit.ci # NB: hadolint not included in pre-commit.ci
skip: [check-hooks-apply, check-useless-excludes, hadolint] skip: [check-hooks-apply, check-useless-excludes, hadolint, prettier]
submodules: false submodules: false

View file

@ -1,8 +1,10 @@
pnpm-lock.yaml
build/ build/
docs/versioned_docs/ docs/versioned_docs/
docs/.docusaurus/ docs/.docusaurus/
docs/pnpm-lock.yaml
dist/ dist/
web/components.d.ts
CHANGELOG.md CHANGELOG.md
web/src/assets/dayjsLocales/
# web/ must be directly formatted from there
# to prevent conflicts with different prettier version
web/

View file

@ -71,7 +71,9 @@ steps:
lint-editorconfig: lint-editorconfig:
image: docker.io/mstruebing/editorconfig-checker:2.7.2 image: docker.io/mstruebing/editorconfig-checker:2.7.2
when: when:
event: pull_request - event: pull_request
- event: push
branch: renovate/*
lint-license-header: lint-license-header:
image: *golang_image image: *golang_image
@ -82,7 +84,10 @@ steps:
prettier: prettier:
image: docker.io/woodpeckerci/plugin-prettier:next image: docker.io/woodpeckerci/plugin-prettier:next
when: *when when:
- event: pull_request
- event: push
branch: renovate/*
test: test:
depends_on: depends_on:

View file

@ -4,5 +4,5 @@ coverage/
LICENSE LICENSE
components.d.ts components.d.ts
src/assets/locales/*.json src/assets/locales/*.json
src/assets/timeAgoLocales/ src/assets/dayjsLocales/
!src/assets/locales/en.json !src/assets/locales/en.json