Skip to content

Commit

Permalink
Add prettier for markdown and yaml (#6040)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Dec 19, 2023
1 parent 3da0679 commit b30ae90
Show file tree
Hide file tree
Showing 10 changed files with 1,338 additions and 1,381 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ name: packages
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+a[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+b[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+a[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+b[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
# Dry-run only
workflow_dispatch:
schedule:
- cron: '0 14 * * SUN'
- cron: "0 14 * * SUN"

jobs:
conda_build:
name: Build Conda Packages
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:
anaconda --token $CONDA_UPLOAD_TOKEN upload --user pyviz --label=dev --label=main $FILE
pip_build:
name: Build PyPI Packages
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ name: docs
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+a[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+b[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+rc[0-9]+'
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+a[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+b[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
workflow_dispatch:
inputs:
target:
description: 'Site to build and deploy, or dry-run'
description: "Site to build and deploy, or dry-run"
type: choice
options:
- dev
- main
- dryrun
- dev
- main
- dryrun
required: true
default: dryrun
schedule:
- cron: '0 14 * * SUN'
- cron: "0 14 * * SUN"

jobs:
build_docs:
name: Documentation
runs-on: 'ubuntu-latest'
runs-on: "ubuntu-latest"
timeout-minutes: 120
defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/downstream_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ jobs:
downstream_tests:
uses: holoviz-dev/holoviz_tasks/.github/workflows/run_downstream_tests.yaml@main
with:
downstream_repos_as_json: "{\"downstream_repo\":[\"hvplot\", \"geoviews\"]}"
downstream_repos_as_json: '{"downstream_repo":["hvplot", "geoviews"]}'
secrets:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
19 changes: 14 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ repos:
- id: check-json
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.6
rev: v0.1.8
hooks:
- id: ruff
files: holoviews/|scripts/
- repo: https://github.com/hoxbro/clean_notebook
rev: v0.1.13
rev: v0.1.14
hooks:
- id: clean-notebook
args: [--strip-trailing-newlines]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
additional_dependencies:
- tomli
- id: codespell
additional_dependencies:
- tomli
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
Expand All @@ -44,3 +45,11 @@ repos:
rev: v0.9.0.6
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.7
hooks:
- id: prettier
exclude: conda.recipe/meta.yaml
types_or:
- markdown
- yaml
Loading

0 comments on commit b30ae90

Please sign in to comment.