1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-24 08:02:18 +02:00

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_schedule: monthly
# 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

View File

@ -1,8 +1,10 @@
pnpm-lock.yaml
build/
docs/versioned_docs/
docs/.docusaurus/
docs/pnpm-lock.yaml
dist/
web/components.d.ts
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:
image: docker.io/mstruebing/editorconfig-checker:2.7.2
when:
event: pull_request
- event: pull_request
- event: push
branch: renovate/*
lint-license-header:
image: *golang_image
@ -82,7 +84,10 @@ steps:
prettier:
image: docker.io/woodpeckerci/plugin-prettier:next
when: *when
when:
- event: pull_request
- event: push
branch: renovate/*
test:
depends_on:

View File

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