Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikhasenko committed May 2, 2022
2 parents d5bc005 + 81db4f2 commit 2086e35
Show file tree
Hide file tree
Showing 30 changed files with 4,324 additions and 1,509 deletions.
115 changes: 88 additions & 27 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,88 @@
{
"version": "0.2",
"flagWords": [
"analyse",
"colour",
"comparision",
"favour",
"flavour",
"hte",
"optimise",
"paramater",
"parmater",
"transision",
"transisions"
],
"ignorePaths": [
"**/.cspell.json",
".pre-commit-config.yaml"
],
"language": "en-GB",
"words": [
"ComPWA",
"Conda",
"Dalitz"
],
"ignoreWords": []
}
{
"allowCompoundWords": false,
"dictionaries": [
"physics",
"this-project"
],
"dictionaryDefinitions": [
{
"addWords": true,
"name": "julia",
"path": "./.cspell/julia.txt"
},
{
"addWords": true,
"name": "latex",
"path": "./.cspell/latex.txt"
},
{
"addWords": true,
"name": "physics",
"path": "./.cspell/physics.txt"
},
{
"addWords": true,
"name": "python",
"path": "./.cspell/python.txt"
},
{
"addWords": true,
"name": "this-project",
"path": "./.cspell/this-project.txt"
}
],
"enableFiletypes": [
"julia"
],
"flagWords": [
"analyse",
"colour",
"comparision",
"favour",
"flavour",
"hte",
"optimise",
"paramater",
"parmater",
"transision",
"transisions"
],
"ignorePaths": [
"**/.cspell.json",
".cspell/*.txt",
".gitignore",
".pre-commit-config.yaml",
".prettierignore",
".vscode/*",
"LICENSE",
"Manifest.toml",
"Project.toml",
"data/**.json",
"pyproject.toml",
"pytest.ini",
"setup.cfg",
"tox.ini"
],
"language": "en-US",
"overrides": [
{
"allowCompoundWords": true,
"dictionaries": [
"julia",
"latex"
],
"filename": "**/*.jl",
"languageId": "julia"
},
{
"allowCompoundWords": true,
"dictionaries": [
"julia",
"latex",
"python"
],
"filename": "**/*.ipynb"
}
],
"version": "0.2"
}
12 changes: 12 additions & 0 deletions .cspell/julia.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
colorbar
findfirst
guidefonthalign
guidefontvalign
joinpath
lims
minorticks
readjson
struct
vcat
xlim
ylim
2 changes: 2 additions & 0 deletions .cspell/latex.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eqnarray
mathrm
13 changes: 13 additions & 0 deletions .cspell/physics.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Blatt
Breit
Bugg
Dalitz
Flatté
helicities
helicity
Kállën
Källén
lineshape
lineshapes
ls
Weisskopf
29 changes: 29 additions & 0 deletions .cspell/python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
arange
clim
cmap
elif
functools
imag
ipykernel
ipython
ipywidgets
isinstance
itertools
kwargs
nbconvert
ncols
nrows
numpy
pcolormesh
pygments
pyplot
pyright
qrules
sharey
sympify
sympy
vmax
vmin
xlabel
xreplace
ylabel
7 changes: 7 additions & 0 deletions .cspell/this-project.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ComPWA
Conda
heli
ifhyphenaverage
msigma
nbformat
phsp
30 changes: 16 additions & 14 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
root = true

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

[Makefile]
indent_style = tab

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

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

[Makefile]
indent_style = tab

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

[setup.cfg]
indent_size = 4
136 changes: 84 additions & 52 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,84 @@
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-vcs-permalinks
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v5.9.1
hooks:
- id: cspell

- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier

- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.238
hooks:
- id: pyright

- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
hooks:
- id: pyupgrade
args:
- --py37-plus
repos:
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-ast
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-vcs-permalinks
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace

- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black

- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v5.9.1
hooks:
- id: cspell

- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.3.1
hooks:
- id: nbqa-black
additional_dependencies:
- black>=22.1.0
- id: nbqa-isort
- id: nbqa-pyupgrade
args:
- --py37-plus

- repo: https://github.com/kynan/nbstripout
rev: 0.5.0
hooks:
- id: nbstripout
args:
- --extra-keys
- |
cell.metadata.code_folding
cell.metadata.id
metadata.celltoolbar
metadata.colab.name
metadata.colab.provenance
metadata.interpreter
metadata.notify_time
metadata.toc
metadata.toc-autonumbering
metadata.toc-showcode
metadata.toc-showmarkdowntxt
metadata.toc-showtags
metadata.varInspector
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier

- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.238
hooks:
- id: pyright

- repo: https://github.com/asottile/pyupgrade
rev: v2.32.0
hooks:
- id: pyupgrade
args:
- --py37-plus
38 changes: 20 additions & 18 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
{
"recommendations": [
"bungcip.better-toml",
"eamodio.gitlens",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-vsliveshare.vsliveshare",
"oijaz.unicode-latex",
"redhat.vscode-yaml",
"streetsidesoftware.code-spell-checker",
"travisillig.vscode-json-stable-stringify",
"tyriar.sort-lines",
"yzhang.markdown-all-in-one"
]
}
{
"recommendations": [
"bungcip.better-toml",
"eamodio.gitlens",
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
"github.vscode-pull-request-github",
"julialang.language-julia",
"ms-python.python",
"ms-python.vscode-pylance",
"ms-vsliveshare.vsliveshare",
"oijaz.unicode-latex",
"redhat.vscode-yaml",
"stkb.rewrap",
"streetsidesoftware.code-spell-checker",
"travisillig.vscode-json-stable-stringify",
"tyriar.sort-lines",
"yzhang.markdown-all-in-one"
]
}
Loading

0 comments on commit 2086e35

Please sign in to comment.