diff --git a/.JuliaFormatter.toml b/.JuliaFormatter.toml index b3c7eea..0b5cfae 100644 --- a/.JuliaFormatter.toml +++ b/.JuliaFormatter.toml @@ -4,4 +4,4 @@ always_for_in = false separate_kwargs_with_semicolon = true margin = 132 yas_style_nesting=true -ignore = [".git"] \ No newline at end of file +ignore = [".git"] diff --git a/.codespellrc b/.codespellrc index f0367c6..12f5aa2 100644 --- a/.codespellrc +++ b/.codespellrc @@ -1,3 +1,2 @@ [codespell] ignore-words-list = missings,rcall - diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 840092b..0f2621a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,4 +76,4 @@ jobs: PYTHON: "" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} - \ No newline at end of file + diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..ce7ce1e --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,23 @@ +name: pre-commit + +on: + pull_request: + push: + branches: [main] + +jobs: + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: 1.11 + - run: | + julia --project=@runic -e ' + using Pkg + Pkg.add("Runic")' + env: + PYTHON: "" + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v3.0.1 diff --git a/.gitignore b/.gitignore index 5a55eb1..13eddf4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,4 @@ docs/src/examples/*.md Manifest*.toml .repl_history.jl quarry -cliff.toml \ No newline at end of file +cliff.toml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100755 index 0000000..e13ec72 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,25 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: check-added-large-files + args: [--maxkb=8192] + - id: check-merge-conflict + - id: check-toml + - id: check-yaml + args: [--allow-multiple-documents] + - id: end-of-file-fixer + - id: no-commit-to-branch + args: [--branch, main] +- repo: https://github.com/gitleaks/gitleaks + rev: v8.16.3 + hooks: + - id: gitleaks +- repo: https://github.com/fredrikekre/runic-pre-commit + rev: v1.0.0 + hooks: + - id: runic +- repo: https://github.com/codespell-project/codespell + rev: v2.2.4 + hooks: + - id: codespell diff --git a/CHANGELOG.md b/CHANGELOG.md index c76c7ec..62bc1a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -145,5 +145,3 @@ fix colorbarticks - Subgridplots (#16) Handle plots of discontinuous functions in Makie,Pyplot, PlutoVista - - diff --git a/README.md b/README.md index 38cfa78..a7682ee 100644 --- a/README.md +++ b/README.md @@ -186,4 +186,3 @@ See the example notebook: [pluto](https://raw.githubusercontent.com/WIAS-PDELib/ ### Jupyter Chances are that things work with Jupyter as well. Please ping me if you would like to volunteer with testing and possibly fixing this. - diff --git a/docs/src/examples/pluto.md b/docs/src/examples/pluto.md index ce4327f..6d660ab 100644 --- a/docs/src/examples/pluto.md +++ b/docs/src/examples/pluto.md @@ -7,4 +7,3 @@ Instead of PlutoVista, Plots, PyPlot and GLMakie can be used from Pluto notebook ```@raw html ``` - diff --git a/docs/src/index.md b/docs/src/index.md index 01b25c8..4b21d47 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -4,4 +4,3 @@ Markdown.parse(""" $(read("../../README.md",String)) """) ```` -