Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre-commit config and actions file #47

Merged
merged 9 commits into from
Nov 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .JuliaFormatter.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ always_for_in = false
separate_kwargs_with_semicolon = true
margin = 132
yas_style_nesting=true
ignore = [".git"]
ignore = [".git"]
1 change: 0 additions & 1 deletion .codespellrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[codespell]
ignore-words-list = missings,rcall

2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ jobs:
PYTHON: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}


23 changes: 23 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ docs/src/examples/*.md
Manifest*.toml
.repl_history.jl
quarry
cliff.toml
cliff.toml
25 changes: 25 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 0 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,3 @@ fix colorbarticks
- Subgridplots (#16)

Handle plots of discontinuous functions in Makie,Pyplot, PlutoVista


1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

1 change: 0 additions & 1 deletion docs/src/examples/pluto.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ Instead of PlutoVista, Plots, PyPlot and GLMakie can be used from Pluto notebook
```@raw html
<iframe style="height:15000px" width="100%" src="../../plutovista.html"> </iframe>
```

1 change: 0 additions & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ Markdown.parse("""
$(read("../../README.md",String))
""")
````

Loading