Skip to content

Commit

Permalink
MAINT: synchronize ComPWA dev setup
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Oct 6, 2023
1 parent 7bd18b1 commit 833fc42
Show file tree
Hide file tree
Showing 12 changed files with 313 additions and 136 deletions.
243 changes: 137 additions & 106 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,108 +1,139 @@
{
"version": "0.2",
"flagWords": [
"analyse",
"colour",
"comparision",
"favour",
"flavour",
"hte",
"optimise",
"paramater",
"parmater",
"transision",
"transisions"
],
"ignorePaths": [
"**/.cspell.json",
".github/workflows",
".gitignore",
".pre-commit-config.yaml",
".vscode/*",
"environment.yml",
"pyproject.toml",
"requirements*.in",
"requirements*.txt",
"tox.ini"
],
"language": "en-US",
"words": [
"AmpForm",
"BESIII",
"Blatt",
"Breit",
"CHEP",
"ComPWA",
"Conda",
"façade",
"FDSA",
"helicity",
"IPython",
"lambdified",
"matplotlib",
"numba",
"NumPy",
"ODSL",
"QRules",
"SymPy",
"TensorWaves",
"unbinned",
"Weisskopf"
],
"ignoreWords": [
"Colab",
"Colaboratory",
"Miniconda",
"absl",
"asdot",
"autoreload",
"axhline",
"axvline",
"charmness",
"codemirror",
"dotprint",
"elif",
"eqnarray",
"figsize",
"filterwarnings",
"functools",
"genfromtxt",
"getsource",
"graphviz",
"gridspec",
"histtype",
"iplt",
"ipykernel",
"ipympl",
"ipynb",
"ipyplot",
"ipywidgets",
"isinstance",
"jaxlib",
"kernelspec",
"kmatrix",
"lambdify",
"linestyle",
"linspace",
"maxsize",
"nbconvert",
"nbformat",
"nbmake",
"nrows",
"phsp",
"posify",
"preorder",
"pygments",
"pyplot",
"pytest",
"rtfd",
"sharex",
"startswith",
"symplot",
"timeit",
"traceback",
"xlabel",
"xreplace",
"yticks"
]
"version": "0.2",
"flagWords": [
"analyse",
"colour",
"comparision",
"favour",
"flavour",
"hte",
"optimise",
"paramater",
"parmater",
"transision",
"transisions"
],
"ignorePaths": [
"**/.cspell.json",
"*.bib",
"*.ico",
"*.root",
"*.rst_t",
"*.svg",
"*particle*.*ml",
".constraints/*.txt",
".editorconfig",
".gitignore",
".gitpod.*",
".mypy.ini",
".pre-commit-config.yaml",
".prettierignore",
".readthedocs.yml",
".vscode/*",
".vscode/.gitignore",
"CITATION.cff",
"codecov.yml",
"Dockerfile",
"docs/_templates/*",
"docs/adr/*/*",
"docs/conf.py",
"labels.toml",
"labels/*.toml",
"Makefile",
"Manifest.toml",
"Project.toml",
"pyproject.toml",
"pyrightconfig.json",
"pytest.ini",
"requirements*.txt",
"setup.cfg",
"setup.py",
"tox.ini",
"typings"
],
"language": "en-US",
"words": [
"AmpForm",
"BESIII",
"Blatt",
"Breit",
"CHEP",
"ComPWA",
"Conda",
"façade",
"FDSA",
"helicity",
"IPython",
"lambdified",
"MAINT",
"matplotlib",
"numba",
"NumPy",
"ODSL",
"PYTHONHASHSEED",
"QRules",
"SymPy",
"TensorWaves",
"unbinned",
"Weisskopf"
],
"ignoreWords": [
"Colab",
"Colaboratory",
"Miniconda",
"absl",
"asdot",
"autoreload",
"axhline",
"axvline",
"charmness",
"codemirror",
"commitlint",
"dotprint",
"elif",
"eqnarray",
"figsize",
"filterwarnings",
"functools",
"genfromtxt",
"getsource",
"graphviz",
"gridspec",
"histtype",
"iplt",
"ipykernel",
"ipympl",
"ipynb",
"ipyplot",
"ipywidgets",
"isinstance",
"jaxlib",
"kernelspec",
"kmatrix",
"lambdify",
"linestyle",
"linspace",
"maxsize",
"nbconvert",
"nbformat",
"nbmake",
"nrows",
"phsp",
"posify",
"preorder",
"prereleased",
"pygments",
"pyplot",
"pytest",
"rtfd",
"sharex",
"startswith",
"symplot",
"timeit",
"traceback",
"xlabel",
"xreplace",
"yticks"
],
"enableFiletypes": ["git-commit", "julia", "jupyter"]
}
15 changes: 6 additions & 9 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@ root = true

[*]
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[Makefile]
indent_style = tab
[*.{ipynb,md}]
indent_size = unset

[*.{py,toml}]
indent_size = 4

[*.{json,yaml,yml}]
indent_size = 2

[*.{rst,inc}]
indent_size = 2
[LICENSE]
indent_size = unset

# when adding words through vscode, this is the resulting output format
[.cspell.json]
[setup.cfg]
indent_size = 4
12 changes: 12 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CD

on:
release:
types:
- prereleased
- released

jobs:
milestone:
if: startsWith(github.ref, 'refs/tags')
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v1
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PYTHONHASHSEED: "0"

on:
push:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
pull_request:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
workflow_dispatch:
inputs:
specific-pip-packages:
description: Run CI with specific pip packages
required: false
type: string

jobs:
style:
if: inputs.specific-pip-packages == ''
secrets:
token: ${{ secrets.PAT }}
uses: ComPWA/actions/.github/workflows/pre-commit.yml@v1
22 changes: 22 additions & 0 deletions .github/workflows/clean-caches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Clean caches

on:
pull_request:
types:
- closed
workflow_dispatch:
inputs:
ref:
description: Clean caches for this branch name or ref
required: false
type: string

jobs:
cleanup:
name: Remove caches
runs-on: ubuntu-22.04
steps:
- uses: ComPWA/actions/clean-caches@v1
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ inputs.ref }}
33 changes: 33 additions & 0 deletions .github/workflows/pr-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PR linting
on:
pull_request:
types:
- edited
- labeled
- opened
- reopened
- synchronize
- unlabeled

jobs:
check-labels:
name: Check labels
runs-on: ubuntu-22.04
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest # cspell:ignore agilepathway
with:
any_of: >-
🐛 Bug,✨ Feature,⚙️ Enhancement,⚠️ Interface,❗ Behavior,📝 Docs,🔨 Maintenance,🖱️ DX
none_of: Epic,💫 Good first issue
repo_token: ${{ secrets.GITHUB_TOKEN }}

check-title:
name: Check title
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: npm install @compwa/commitlint-config
- name: Create commitlint config
run: |
echo "module.exports = {extends: ['@compwa/commitlint-config']}" > commitlint.config.js
- uses: JulienKode/[email protected] # cspell:ignore kode
Loading

0 comments on commit 833fc42

Please sign in to comment.