Skip to content
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
24 changes: 24 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPDX-FileCopyrightText: 2025 SeisSol Group
#
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-LicenseComments: Full text under /LICENSE and /LICENSES/
#
# SPDX-FileContributor: Author lists in /AUTHORS and /CITATION.cff

name: pre-commit
on:
- push

jobs:
pre-commit:
name: pre-commit
runs-on: ubuntu-24.04
steps:
- name: setup-python
uses: actions/setup-python@v6
with:
python-version: '3.13'

- uses: actions/checkout@v5

- uses: pre-commit/action@v3.0.1
1 change: 1 addition & 0 deletions .markdownlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
line-length: false
80 changes: 80 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# SPDX-FileCopyrightText: 2025 SeisSol Group
#
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-LicenseComments: Full text under /LICENSE and /LICENSES/
#
# SPDX-FileContributor: Author lists in /AUTHORS and /CITATION.cff

---

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
name: '[GENERIC] merge conflict check'
- id: check-symlinks
name: '[GENERIC] symlink check'
- id: destroyed-symlinks
name: '[GENERIC] detect broken symlinks'
- id: detect-private-key
name: '[GENERIC] detect private keys uploaded by accident'
- id: check-case-conflict
name: '[GENERIC] detect OS file naming case conflicts'
- id: check-executables-have-shebangs
name: '[GENERIC] check for shebangs in executable files'
- id: check-illegal-windows-names
name: '[GENERIC] detect illegal Windows file names'
- id: check-json
name: '[JSON] check'
- id: check-xml
name: '[XML] check'
- id: check-shebang-scripts-are-executable
name: '[GENERIC] check that shebang-containing files are executable'

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.18.1
hooks:
- id: markdownlint-cli2
name: '[MARKDOWN] lint'

#- repo: https://github.com/fsfe/reuse-tool
# rev: v5.1.1
# hooks:
# - id: reuse
# name: '[GENERIC] REUSE compatibiltiy'

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
hooks:
- id: black
language_version: python3.13
files: ^(?!preprocessing|postprocessing)
name: '[PYTHON] black'
- repo: https://github.com/pycqa/isort
rev: 6.0.1
hooks:
- id: isort
files: ^(?!preprocessing|postprocessing)
args: ["--profile", "black"]
name: '[PYTHON] isort'
- repo: https://github.com/pycqa/bandit
rev: 1.8.6
hooks:
- id: bandit
args: ["--confidence-level", "high", "--severity-level", "high"]
name: '[PYTHON] bandit'
#- repo: https://github.com/pycqa/flake8
# rev: '7.3.0'
# hooks:
# - id: flake8
# files: ^(?!preprocessing|postprocessing)
# name: '[PYTHON] Flake8'

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
name: '[GENERIC] newline eof'
- id: trailing-whitespace
name: '[GENERIC] remove trailing whitespace'
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
BSD 3-Clause License

Copyright (c) 2018-2025 SeisSol Group
Copyright (c) 2018, Peter Wauligmann, Nathan Brei
All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Currently supported:

## Installation

PspaMM is a Python package. I.e. after cloning, may install it via pip.
PSpaMM is a Python package. I.e. after cloning, may install it via pip.

Alternatively, you can install it directly by running

Expand Down
5 changes: 0 additions & 5 deletions pspamm.py

This file was deleted.

1 change: 0 additions & 1 deletion pspamm/__init__.py

This file was deleted.

15 changes: 0 additions & 15 deletions pspamm/codegen/architectures/__init__.py

This file was deleted.

Loading