-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: migrate to copier-numpy template
- Loading branch information
Showing
45 changed files
with
1,930 additions
and
1,049 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Changes here will be overwritten by Copier (DO NOT EDIT MANUALLY) | ||
_commit: v0.4.0-2-g5b15cde | ||
_src_path: gh:eckelsjd/copier-numpy | ||
author_email: eckelsjd@umich.edu | ||
author_name: Joshua Eckels | ||
copyright_license: GPL-3.0 | ||
distribution_name: amisc | ||
import_name: amisc | ||
include_cicd: true | ||
include_docs: true | ||
init_github: true | ||
install_jupyter: false | ||
is_distributable: true | ||
project_description: Efficient framework for building surrogates of multidisciplinary | ||
systems using the adaptive multi-index stochastic collocation (AMISC) technique. | ||
project_name: amisc | ||
repository_namespace: eckelsjd | ||
requires_python: '>=3.11' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,38 @@ | ||
name: Run PR test matrix | ||
name: Lint and test | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
permissions: | ||
contents: write | ||
jobs: | ||
check-lint: | ||
name: Lint check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: pdm-project/setup-pdm@v4 | ||
with: | ||
python-version: 3.11 | ||
cache: true | ||
- run: pdm sync -G dev --no-default | ||
- run: pdm run lint | ||
|
||
pr-tests: | ||
name: PR tests | ||
runs-on: ${{ matrix.os }} | ||
needs: check-lint | ||
strategy: | ||
matrix: | ||
python-version: ['3.11', '3.12'] | ||
os: [ ubuntu-latest, macOS-latest, windows-latest ] | ||
os: [ ubuntu-latest, windows-latest ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up PDM | ||
uses: pdm-project/setup-pdm@v4 | ||
with: | ||
cache: true | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: pdm install | ||
run: pdm sync -G test | ||
- name: Run tests | ||
run: pdm run -v test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
default_install_hook_types: [ pre-commit, commit-msg ] | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 # Use the latest version available | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-added-large-files | ||
- id: check-merge-conflict | ||
|
||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.6.1 # Use the desired version of ruff | ||
hooks: | ||
- id: ruff | ||
files: ^src/|^tests/ | ||
args: [ --exit-non-zero-on-fix ] | ||
|
||
- repo: local | ||
hooks: | ||
- id: pytest-status | ||
name: pytest-status | ||
description: "Make sure all tests have passed since last source code change." | ||
entry: pdm run python _pre_commit_checks.py | ||
args: [ --pytest-status ] | ||
language: system | ||
pass_filenames: false | ||
require_serial: true | ||
|
||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.29.0 | ||
hooks: | ||
- id: commitizen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Changes should automatically show up here when using `cz bump`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.