cmtj 0.0.post1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cmtj-0.0.post1/.devcontainer/devcontainer.json +33 -0
- cmtj-0.0.post1/.dockerignore +20 -0
- cmtj-0.0.post1/.gitattributes +1 -0
- cmtj-0.0.post1/.github/workflows/cibuildwheel.yml +193 -0
- cmtj-0.0.post1/.github/workflows/docker-image.yml +34 -0
- cmtj-0.0.post1/.github/workflows/main.yml.disabled +134 -0
- cmtj-0.0.post1/.github/workflows/package-release.yml +26 -0
- cmtj-0.0.post1/.github/workflows/python-test.yml +77 -0
- cmtj-0.0.post1/.gitmodules +3 -0
- cmtj-0.0.post1/.pre-commit-config.yaml +65 -0
- cmtj-0.0.post1/.readthedocs.yaml +15 -0
- cmtj-0.0.post1/CHANGELOG.md +93 -0
- cmtj-0.0.post1/CITATION.cff +67 -0
- cmtj-0.0.post1/LICENSE +339 -0
- cmtj-0.0.post1/MANIFEST.in +11 -0
- cmtj-0.0.post1/PKG-INFO +272 -0
- cmtj-0.0.post1/README.md +221 -0
- cmtj-0.0.post1/assets/icon-larger.png +0 -0
- cmtj-0.0.post1/assets/icon-small.svg +9 -0
- cmtj-0.0.post1/assets/icon.svg +9 -0
- cmtj-0.0.post1/cmtj/__init__.py +21 -0
- cmtj-0.0.post1/cmtj/__init__.pyi +722 -0
- cmtj-0.0.post1/cmtj/_version.py +34 -0
- cmtj-0.0.post1/cmtj/core/__init__.py +1 -0
- cmtj-0.0.post1/cmtj/core/__init__.pyi +715 -0
- cmtj-0.0.post1/cmtj/llgb/__init__.py +1 -0
- cmtj-0.0.post1/cmtj/llgb/__init__.pyi +119 -0
- cmtj-0.0.post1/cmtj/models/__init__.py +8 -0
- cmtj-0.0.post1/cmtj/models/analytical_utils.py +117 -0
- cmtj-0.0.post1/cmtj/models/domain_dynamics.py +320 -0
- cmtj-0.0.post1/cmtj/models/drivers.py +22 -0
- cmtj-0.0.post1/cmtj/models/ensemble.py +50 -0
- cmtj-0.0.post1/cmtj/models/general_sb.py +1144 -0
- cmtj-0.0.post1/cmtj/models/noise.py +293 -0
- cmtj-0.0.post1/cmtj/models/oersted.py +188 -0
- cmtj-0.0.post1/cmtj/noise/__init__.py +1 -0
- cmtj-0.0.post1/cmtj/noise/__init__.pyi +47 -0
- cmtj-0.0.post1/cmtj/py.typed +0 -0
- cmtj-0.0.post1/cmtj/reservoir/__init__.py +1 -0
- cmtj-0.0.post1/cmtj/reservoir/__init__.pyi +172 -0
- cmtj-0.0.post1/cmtj/stack/__init__.py +1 -0
- cmtj-0.0.post1/cmtj/stack/__init__.pyi +206 -0
- cmtj-0.0.post1/cmtj/utils/__init__.py +42 -0
- cmtj-0.0.post1/cmtj/utils/energy.py +63 -0
- cmtj-0.0.post1/cmtj/utils/filters.py +52 -0
- cmtj-0.0.post1/cmtj/utils/general.py +114 -0
- cmtj-0.0.post1/cmtj/utils/linear.py +122 -0
- cmtj-0.0.post1/cmtj/utils/optimization.py +105 -0
- cmtj-0.0.post1/cmtj/utils/parallel.py +85 -0
- cmtj-0.0.post1/cmtj/utils/plotting.py +279 -0
- cmtj-0.0.post1/cmtj/utils/procedures.py +331 -0
- cmtj-0.0.post1/cmtj/utils/resistance.py +561 -0
- cmtj-0.0.post1/cmtj/utils/solvers.py +39 -0
- cmtj-0.0.post1/cmtj.egg-info/PKG-INFO +272 -0
- cmtj-0.0.post1/cmtj.egg-info/SOURCES.txt +227 -0
- cmtj-0.0.post1/cmtj.egg-info/dependency_links.txt +1 -0
- cmtj-0.0.post1/cmtj.egg-info/not-zip-safe +1 -0
- cmtj-0.0.post1/cmtj.egg-info/requires.txt +28 -0
- cmtj-0.0.post1/cmtj.egg-info/top_level.txt +2 -0
- cmtj-0.0.post1/core/compute.hpp +219 -0
- cmtj-0.0.post1/core/cvector.hpp +222 -0
- cmtj-0.0.post1/core/drivers.hpp +468 -0
- cmtj-0.0.post1/core/junction.hpp +2058 -0
- cmtj-0.0.post1/core/llgb.hpp +565 -0
- cmtj-0.0.post1/core/noise.hpp +310 -0
- cmtj-0.0.post1/core/reservoir.hpp +486 -0
- cmtj-0.0.post1/core/stack.hpp +482 -0
- cmtj-0.0.post1/curated-examples/cims-hysteresis.py +206 -0
- cmtj-0.0.post1/curated-examples/cims-stability-stability-diagram.py +318 -0
- cmtj-0.0.post1/curated-examples/figures/cims-hysteresis.png +0 -0
- cmtj-0.0.post1/curated-examples/figures/cims-stability.png +0 -0
- cmtj-0.0.post1/curated-examples/figures/fmr-basic.png +0 -0
- cmtj-0.0.post1/curated-examples/figures/harmonic-hall.png +0 -0
- cmtj-0.0.post1/curated-examples/figures/p-bit.png +0 -0
- cmtj-0.0.post1/curated-examples/figures/vsd-basic-freq-scan.png +0 -0
- cmtj-0.0.post1/curated-examples/figures/vsd-basic.png +0 -0
- cmtj-0.0.post1/curated-examples/fmr-basic.py +184 -0
- cmtj-0.0.post1/curated-examples/harmonic-hall.py +220 -0
- cmtj-0.0.post1/curated-examples/p-bit.py +337 -0
- cmtj-0.0.post1/curated-examples/sto.py +114 -0
- cmtj-0.0.post1/curated-examples/vsd-basic-field-scan.py +219 -0
- cmtj-0.0.post1/curated-examples/vsd-basic-freq-scan.py +274 -0
- cmtj-0.0.post1/deprecated/experiment.cpp +215 -0
- cmtj-0.0.post1/docker/Dockerfile +13 -0
- cmtj-0.0.post1/docker/Dockerfile.app +13 -0
- cmtj-0.0.post1/docker/Dockerfile.wheel +22 -0
- cmtj-0.0.post1/docs/api/core.md +1 -0
- cmtj-0.0.post1/docs/api/drivers.md +75 -0
- cmtj-0.0.post1/docs/api/energy-reference.md +1 -0
- cmtj-0.0.post1/docs/api/ensemble-reference.md +5 -0
- cmtj-0.0.post1/docs/api/filters-reference.md +1 -0
- cmtj-0.0.post1/docs/api/general-reference.md +5 -0
- cmtj-0.0.post1/docs/api/linear-reference.md +1 -0
- cmtj-0.0.post1/docs/api/llgb.md +1 -0
- cmtj-0.0.post1/docs/api/models/dw-reference.md +1 -0
- cmtj-0.0.post1/docs/api/models/sb-general-reference.md +6 -0
- cmtj-0.0.post1/docs/api/noise.md +1 -0
- cmtj-0.0.post1/docs/api/optimization-reference.md +1 -0
- cmtj-0.0.post1/docs/api/parallel-reference.md +1 -0
- cmtj-0.0.post1/docs/api/plotting-reference.md +1 -0
- cmtj-0.0.post1/docs/api/procedures-reference.md +1 -0
- cmtj-0.0.post1/docs/api/reservoir.md +1 -0
- cmtj-0.0.post1/docs/api/resistance-reference.md +6 -0
- cmtj-0.0.post1/docs/api/stack.md +1 -0
- cmtj-0.0.post1/docs/assets/icon-small.png +0 -0
- cmtj-0.0.post1/docs/assets/icon-small.svg +9 -0
- cmtj-0.0.post1/docs/assets/icon.png +0 -0
- cmtj-0.0.post1/docs/assets/icon.svg +9 -0
- cmtj-0.0.post1/docs/autogen/01_pimm___vsd_procedures_.md +202 -0
- cmtj-0.0.post1/docs/autogen/02_fieldscan_utilities_.md +155 -0
- cmtj-0.0.post1/docs/autogen/03_time_dependent_drivers__scalardriver___axialdriver__.md +178 -0
- cmtj-0.0.post1/docs/autogen/04_magnetic_layer_models__layersb___layerdynamic__.md +187 -0
- cmtj-0.0.post1/docs/autogen/05_domain_wall_dynamics__domainwalldynamics___multilayerwalldynamics__.md +181 -0
- cmtj-0.0.post1/docs/autogen/06_oersted_field___pinning_calculations_.md +224 -0
- cmtj-0.0.post1/docs/autogen/07_noise_generation_models_.md +171 -0
- cmtj-0.0.post1/docs/autogen/08_signal_filters_.md +164 -0
- cmtj-0.0.post1/docs/autogen/09_vector_objects__cvector___vectorobj__.md +204 -0
- cmtj-0.0.post1/docs/autogen/10_sb_solver__solver__.md +155 -0
- cmtj-0.0.post1/docs/autogen/index.md +68 -0
- cmtj-0.0.post1/docs/docgen.py +147 -0
- cmtj-0.0.post1/docs/experimental-methods/CIMS.ipynb +717 -0
- cmtj-0.0.post1/docs/experimental-methods/HarmonicsFits.ipynb +1477 -0
- cmtj-0.0.post1/docs/experimental-methods/MemoryCell.ipynb +196 -0
- cmtj-0.0.post1/docs/experimental-methods/VoltageSpinDiodeFits.ipynb +968 -0
- cmtj-0.0.post1/docs/experimental-methods/examples.ipynb +1643 -0
- cmtj-0.0.post1/docs/experimental-methods/introduction.md +33 -0
- cmtj-0.0.post1/docs/index.md +221 -0
- cmtj-0.0.post1/docs/overview.md +66 -0
- cmtj-0.0.post1/docs/physics/contributions.md +217 -0
- cmtj-0.0.post1/docs/physics/linearisation.md +151 -0
- cmtj-0.0.post1/docs/physics/macromagnetic_models.md +240 -0
- cmtj-0.0.post1/docs/physics/paralellism.md +136 -0
- cmtj-0.0.post1/docs/physics/sb-model.md +161 -0
- cmtj-0.0.post1/docs/requirements.txt +13 -0
- cmtj-0.0.post1/docs/tipsandtricks.md +17 -0
- cmtj-0.0.post1/docs/tutorials/CMTJBindingsTutorial.ipynb +552 -0
- cmtj-0.0.post1/docs/tutorials/SBModel.ipynb +878 -0
- cmtj-0.0.post1/docs/tutorials/interactions.ipynb +257 -0
- cmtj-0.0.post1/docs/tutorials/simpler_harmonics.ipynb +442 -0
- cmtj-0.0.post1/docs/tutorials/trajectory.ipynb +380 -0
- cmtj-0.0.post1/examples/harmonic-hall/HarmonicsFits.ipynb +1691 -0
- cmtj-0.0.post1/examples/harmonic-hall/Ta_CoFeB/5360_1f_hx_hy.csv +250 -0
- cmtj-0.0.post1/examples/harmonic-hall/Ta_CoFeB/5360_2f_hx_hy.csv +247 -0
- cmtj-0.0.post1/examples/harmonic-hall/Ta_CoFeB/5360_rxx_alpha_beta_gamma.csv +70 -0
- cmtj-0.0.post1/examples/harmonic-hall/Ta_CoFeB/5360_rxx_hx_h45_hy.csv +126 -0
- cmtj-0.0.post1/examples/harmonic-hall/Ta_CoFeB/5360_rxy_alpha_beta_gamma.csv +74 -0
- cmtj-0.0.post1/examples/harmonic-hall/Ta_CoFeB/5360_rxy_hx_h45_hy.csv +250 -0
- cmtj-0.0.post1/examples/harmonic-hall/VSD/5360_2p.csv +153 -0
- cmtj-0.0.post1/examples/harmonic-hall/VSD/5360_4p.csv +153 -0
- cmtj-0.0.post1/examples/harmonic-hall/VoltageSpinDiodeFits.ipynb +944 -0
- cmtj-0.0.post1/examples/overview/data/4804_35.csv +73 -0
- cmtj-0.0.post1/examples/overview/data/J214.dat +101 -0
- cmtj-0.0.post1/examples/overview/data/J237.dat +101 -0
- cmtj-0.0.post1/examples/overview/data/V10325_Ptb_85_thin_cross.txt +80 -0
- cmtj-0.0.post1/examples/overview/data/dispersion_relation.csv +20 -0
- cmtj-0.0.post1/examples/overview/data/magen3190.dat +101 -0
- cmtj-0.0.post1/examples/overview/examples.ipynb +1715 -0
- cmtj-0.0.post1/examples/stt-fields/Makefile +7 -0
- cmtj-0.0.post1/examples/stt-fields/launch.sh +6 -0
- cmtj-0.0.post1/examples/stt-fields/plot_torque.py +129 -0
- cmtj-0.0.post1/examples/stt-fields/torque.cpp +187 -0
- cmtj-0.0.post1/mkdocs.yml +119 -0
- cmtj-0.0.post1/pyproject.toml +113 -0
- cmtj-0.0.post1/python/cmtj.cpp +494 -0
- cmtj-0.0.post1/ruff.toml +90 -0
- cmtj-0.0.post1/scripts/readme_copy.py +40 -0
- cmtj-0.0.post1/setup.cfg +43 -0
- cmtj-0.0.post1/setup.py +88 -0
- cmtj-0.0.post1/tests/CMakeLists.txt +53 -0
- cmtj-0.0.post1/tests/assets/bilayer_sb_fmr_8_point_sweep.json +1 -0
- cmtj-0.0.post1/tests/build_script.sh +7 -0
- cmtj-0.0.post1/tests/conftest.py +237 -0
- cmtj-0.0.post1/tests/dynamic_tests.sh +2 -0
- cmtj-0.0.post1/tests/test_basic.py +102 -0
- cmtj-0.0.post1/tests/test_basic_symbolic_fmr.py +345 -0
- cmtj-0.0.post1/tests/test_drivers.py +136 -0
- cmtj-0.0.post1/tests/test_group_interaction.py +135 -0
- cmtj-0.0.post1/tests/test_imports.py +16 -0
- cmtj-0.0.post1/tests/test_layer.cpp +77 -0
- cmtj-0.0.post1/tests/test_linearisation.py +90 -0
- cmtj-0.0.post1/tests/test_llgb.cpp +26 -0
- cmtj-0.0.post1/tests/test_llgb.py +121 -0
- cmtj-0.0.post1/tests/test_models.py +51 -0
- cmtj-0.0.post1/tests/test_procedures.py +85 -0
- cmtj-0.0.post1/tests/test_reservoir.cpp +235 -0
- cmtj-0.0.post1/tests/test_sanity.py +39 -0
- cmtj-0.0.post1/tests/test_solvers.py +25 -0
- cmtj-0.0.post1/tests/test_sot.cpp +56 -0
- cmtj-0.0.post1/tests/test_sot_torques.py +181 -0
- cmtj-0.0.post1/tests/test_stack.py +231 -0
- cmtj-0.0.post1/tests/test_symbolic.py +49 -0
- cmtj-0.0.post1/tests/test_vector.cpp +32 -0
- cmtj-0.0.post1/tests/vsd/Makefile +5 -0
- cmtj-0.0.post1/tests/vsd/vsd.cpp +130 -0
- cmtj-0.0.post1/third_party/kissfft/_kiss_fft_guts.h +167 -0
- cmtj-0.0.post1/third_party/kissfft/kfc.c +109 -0
- cmtj-0.0.post1/third_party/kissfft/kfc.h +54 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fft.c +420 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fft.h +160 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fft_log.h +36 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fftnd.c +188 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fftnd.h +26 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fftndr.c +120 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fftndr.h +55 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fftr.c +155 -0
- cmtj-0.0.post1/third_party/kissfft/kiss_fftr.h +54 -0
- cmtj-0.0.post1/third_party/kissfft/kissfft.hh +361 -0
- cmtj-0.0.post1/third_party/kissfft/kissfft_i32.hh +304 -0
- cmtj-0.0.post1/third_party/kissfft/test/benchfftw.c +101 -0
- cmtj-0.0.post1/third_party/kissfft/test/benchkiss.c +129 -0
- cmtj-0.0.post1/third_party/kissfft/test/doit.c +134 -0
- cmtj-0.0.post1/third_party/kissfft/test/pstats.c +56 -0
- cmtj-0.0.post1/third_party/kissfft/test/pstats.h +14 -0
- cmtj-0.0.post1/third_party/kissfft/test/test_real.c +179 -0
- cmtj-0.0.post1/third_party/kissfft/test/test_simd.c +25 -0
- cmtj-0.0.post1/third_party/kissfft/test/twotonetest.c +101 -0
- cmtj-0.0.post1/third_party/kissfft/tools/fftutil.c +202 -0
- cmtj-0.0.post1/third_party/kissfft/tools/kiss_fastfir.c +464 -0
- cmtj-0.0.post1/third_party/kissfft/tools/psdpng.c +232 -0
- cmtj-0.0.post1/view/assets/icon-larger.png +0 -0
- cmtj-0.0.post1/view/autofit.py +145 -0
- cmtj-0.0.post1/view/domain.py +319 -0
- cmtj-0.0.post1/view/helpers.py +153 -0
- cmtj-0.0.post1/view/nav.py +27 -0
- cmtj-0.0.post1/view/requirements.txt +10 -0
- cmtj-0.0.post1/view/simulation_fns.py +404 -0
- cmtj-0.0.post1/view/streamlit_app.py +365 -0
- cmtj-0.0.post1/view/utils.py +56 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Python 3",
|
|
3
|
+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
4
|
+
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
|
|
5
|
+
"customizations": {
|
|
6
|
+
"codespaces": {
|
|
7
|
+
"openFiles": [
|
|
8
|
+
"README.md",
|
|
9
|
+
"view/streamlit_app.py"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"vscode": {
|
|
13
|
+
"settings": {},
|
|
14
|
+
"extensions": [
|
|
15
|
+
"ms-python.python",
|
|
16
|
+
"ms-python.vscode-pylance"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y <packages.txt; [ -f requirements.txt ] && pip3 install --user -r requirements.txt; pip3 install --user streamlit; echo '✅ Packages installed and Requirements met'",
|
|
21
|
+
"postAttachCommand": {
|
|
22
|
+
"server": "streamlit run view/streamlit_app.py --server.enableCORS false --server.enableXsrfProtection false"
|
|
23
|
+
},
|
|
24
|
+
"portsAttributes": {
|
|
25
|
+
"8501": {
|
|
26
|
+
"label": "Application",
|
|
27
|
+
"onAutoForward": "openPreview"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"forwardPorts": [
|
|
31
|
+
8501
|
|
32
|
+
]
|
|
33
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
*.jpg
|
|
2
|
+
*.png
|
|
3
|
+
deprecated/
|
|
4
|
+
build/
|
|
5
|
+
scratch/
|
|
6
|
+
*.egg-info/
|
|
7
|
+
__pycache__/
|
|
8
|
+
*.pyc
|
|
9
|
+
*.pyo
|
|
10
|
+
*.pyd
|
|
11
|
+
*.so
|
|
12
|
+
.eggs/
|
|
13
|
+
.ipynb_checkpoints/
|
|
14
|
+
.vscode/
|
|
15
|
+
.idea/
|
|
16
|
+
articles/
|
|
17
|
+
examples/
|
|
18
|
+
docs/
|
|
19
|
+
!assets/icon-larger.png
|
|
20
|
+
!view/assets/icon-larger.png
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*.ipynb linguist-documentation
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
name: Build wheels with cibuildwheel
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [master]
|
|
6
|
+
paths:
|
|
7
|
+
- '**.cpp'
|
|
8
|
+
- '**.hpp'
|
|
9
|
+
- '**.py'
|
|
10
|
+
- 'setup.py'
|
|
11
|
+
- 'setup.cfg'
|
|
12
|
+
- 'pyproject.toml'
|
|
13
|
+
- '**.yml'
|
|
14
|
+
|
|
15
|
+
pull_request_target:
|
|
16
|
+
types: [closed]
|
|
17
|
+
branches: [master]
|
|
18
|
+
paths:
|
|
19
|
+
- '**.cpp'
|
|
20
|
+
- '**.hpp'
|
|
21
|
+
- '**.py'
|
|
22
|
+
- 'setup.py'
|
|
23
|
+
- 'setup.cfg'
|
|
24
|
+
- 'pyproject.toml'
|
|
25
|
+
|
|
26
|
+
workflow_dispatch:
|
|
27
|
+
inputs:
|
|
28
|
+
dry-run:
|
|
29
|
+
description: 'Dry run (no actual upload to PyPI)'
|
|
30
|
+
type: boolean
|
|
31
|
+
default: true
|
|
32
|
+
|
|
33
|
+
jobs:
|
|
34
|
+
build_wheels:
|
|
35
|
+
name: Build wheels on ${{ matrix.os }}
|
|
36
|
+
runs-on: ${{ matrix.os }}
|
|
37
|
+
strategy:
|
|
38
|
+
matrix:
|
|
39
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
40
|
+
env:
|
|
41
|
+
TWINE_USERNAME: __token__
|
|
42
|
+
IS_DRY_RUN: ${{ !(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true) }}
|
|
43
|
+
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v4
|
|
46
|
+
with:
|
|
47
|
+
submodules: 'true'
|
|
48
|
+
|
|
49
|
+
- name: Get version
|
|
50
|
+
id: get_version
|
|
51
|
+
run: |
|
|
52
|
+
python -m pip install setuptools-scm
|
|
53
|
+
echo "version=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")" >> $GITHUB_OUTPUT
|
|
54
|
+
|
|
55
|
+
- name: Set up Python
|
|
56
|
+
uses: actions/setup-python@v5
|
|
57
|
+
with:
|
|
58
|
+
python-version: "3.11"
|
|
59
|
+
|
|
60
|
+
- name: Install cibuildwheel
|
|
61
|
+
run: python -m pip install cibuildwheel
|
|
62
|
+
|
|
63
|
+
- name: Build wheels
|
|
64
|
+
run: python -m cibuildwheel --output-dir wheelhouse
|
|
65
|
+
env:
|
|
66
|
+
# Build for Python 3.9, 3.10, 3.11, 3.12
|
|
67
|
+
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
|
|
68
|
+
# Skip PyPy builds and 32-bit builds
|
|
69
|
+
CIBW_SKIP: "pp* *-win32 *-manylinux_i686"
|
|
70
|
+
# Install build dependencies
|
|
71
|
+
CIBW_BUILD_REQUIRES: "setuptools>=61.0 setuptools-scm>=8.0 pybind11>=2.6.1 wheel"
|
|
72
|
+
# Test command (optional)
|
|
73
|
+
CIBW_TEST_REQUIRES: "pytest pytest-xdist"
|
|
74
|
+
CIBW_TEST_COMMAND: "pytest {project}/tests/ -v"
|
|
75
|
+
# Use manylinux2014 for Linux builds
|
|
76
|
+
CIBW_TEST_SKIP: "*-musllinux*"
|
|
77
|
+
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_28
|
|
78
|
+
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
|
|
79
|
+
# Environment variables
|
|
80
|
+
CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ steps.get_version.outputs.version }}"
|
|
81
|
+
|
|
82
|
+
- name: Install twine
|
|
83
|
+
run: python -m pip install twine
|
|
84
|
+
|
|
85
|
+
- name: Check wheels
|
|
86
|
+
run: python -m twine check wheelhouse/*
|
|
87
|
+
|
|
88
|
+
- name: Upload wheels to Test PyPI (dry run)
|
|
89
|
+
if: env.IS_DRY_RUN == 'true'
|
|
90
|
+
env:
|
|
91
|
+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
|
|
92
|
+
run: |
|
|
93
|
+
python -m twine upload --repository testpypi wheelhouse/* --verbose
|
|
94
|
+
continue-on-error: true
|
|
95
|
+
|
|
96
|
+
- name: Upload wheels to PyPI (production)
|
|
97
|
+
if: env.IS_DRY_RUN == 'false'
|
|
98
|
+
env:
|
|
99
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
|
100
|
+
run: |
|
|
101
|
+
python -m twine upload wheelhouse/*
|
|
102
|
+
|
|
103
|
+
- name: Upload wheels as artifacts
|
|
104
|
+
uses: actions/upload-artifact@v4
|
|
105
|
+
with:
|
|
106
|
+
name: wheels-${{ matrix.os }}-${{ strategy.job-index }}
|
|
107
|
+
path: wheelhouse/*.whl
|
|
108
|
+
retention-days: 30
|
|
109
|
+
|
|
110
|
+
build_sdist:
|
|
111
|
+
name: Build source distribution
|
|
112
|
+
runs-on: ubuntu-latest
|
|
113
|
+
env:
|
|
114
|
+
TWINE_USERNAME: __token__
|
|
115
|
+
IS_DRY_RUN: ${{ !(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true) }}
|
|
116
|
+
|
|
117
|
+
steps:
|
|
118
|
+
- uses: actions/checkout@v4
|
|
119
|
+
with:
|
|
120
|
+
submodules: 'true'
|
|
121
|
+
|
|
122
|
+
- name: Get version
|
|
123
|
+
id: get_version
|
|
124
|
+
run: |
|
|
125
|
+
python -m pip install setuptools-scm
|
|
126
|
+
echo "version=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")" >> $GITHUB_OUTPUT
|
|
127
|
+
|
|
128
|
+
- name: Set up Python
|
|
129
|
+
uses: actions/setup-python@v5
|
|
130
|
+
with:
|
|
131
|
+
python-version: "3.11"
|
|
132
|
+
|
|
133
|
+
- name: Build sdist
|
|
134
|
+
run: |
|
|
135
|
+
python -m pip install build
|
|
136
|
+
python -m build --sdist
|
|
137
|
+
|
|
138
|
+
- name: Install twine
|
|
139
|
+
run: python -m pip install twine
|
|
140
|
+
|
|
141
|
+
- name: Check sdist
|
|
142
|
+
run: python -m twine check dist/*
|
|
143
|
+
|
|
144
|
+
- name: Upload sdist to Test PyPI (dry run)
|
|
145
|
+
if: env.IS_DRY_RUN == 'true'
|
|
146
|
+
env:
|
|
147
|
+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
|
|
148
|
+
run: |
|
|
149
|
+
python -m twine upload --repository testpypi dist/* --verbose
|
|
150
|
+
continue-on-error: true
|
|
151
|
+
|
|
152
|
+
- name: Upload sdist to PyPI (production)
|
|
153
|
+
if: env.IS_DRY_RUN == 'false'
|
|
154
|
+
env:
|
|
155
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
|
156
|
+
run: |
|
|
157
|
+
python -m twine upload dist/*
|
|
158
|
+
|
|
159
|
+
- name: Upload sdist as artifact
|
|
160
|
+
uses: actions/upload-artifact@v4
|
|
161
|
+
with:
|
|
162
|
+
name: sdist
|
|
163
|
+
path: dist/*.tar.gz
|
|
164
|
+
retention-days: 30
|
|
165
|
+
|
|
166
|
+
release-build:
|
|
167
|
+
name: Create GitHub Release
|
|
168
|
+
needs: [build_wheels, build_sdist]
|
|
169
|
+
if: (github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
|
|
170
|
+
runs-on: ubuntu-latest
|
|
171
|
+
steps:
|
|
172
|
+
- uses: actions/checkout@v4
|
|
173
|
+
|
|
174
|
+
- name: Get version
|
|
175
|
+
id: get_version
|
|
176
|
+
run: |
|
|
177
|
+
python -m pip install setuptools-scm
|
|
178
|
+
echo "version=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")" >> $GITHUB_OUTPUT
|
|
179
|
+
|
|
180
|
+
- name: Download all artifacts
|
|
181
|
+
uses: actions/download-artifact@v4
|
|
182
|
+
with:
|
|
183
|
+
path: artifacts
|
|
184
|
+
|
|
185
|
+
- name: Create release
|
|
186
|
+
env:
|
|
187
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
188
|
+
run: |
|
|
189
|
+
gh release create "v${{ steps.get_version.outputs.version }}" \
|
|
190
|
+
--repo="$GITHUB_REPOSITORY" \
|
|
191
|
+
--title="${GITHUB_REPOSITORY#*/} ${{ steps.get_version.outputs.version }}" \
|
|
192
|
+
--generate-notes \
|
|
193
|
+
artifacts/*/*
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Docker Image CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "master" ]
|
|
6
|
+
paths-ignore:
|
|
7
|
+
- 'README.md'
|
|
8
|
+
- 'docs/**'
|
|
9
|
+
- 'examples/**'
|
|
10
|
+
- LICENSE
|
|
11
|
+
- mkdocs.yml
|
|
12
|
+
|
|
13
|
+
workflow_dispatch:
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
build:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
submodules: 'true'
|
|
22
|
+
- name: Login to GH container registry
|
|
23
|
+
uses: docker/login-action@v2
|
|
24
|
+
with:
|
|
25
|
+
registry: ghcr.io
|
|
26
|
+
username: ${{github.actor}}
|
|
27
|
+
password: ${{secrets.GITHUB_TOKEN}}
|
|
28
|
+
- name: Build and push image
|
|
29
|
+
uses: docker/build-push-action@v4
|
|
30
|
+
with:
|
|
31
|
+
push: true
|
|
32
|
+
file: docker/Dockerfile
|
|
33
|
+
tags: |
|
|
34
|
+
ghcr.io/lemurpwned/cmtj:latest
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
name: Python Package Publication
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches: [master]
|
|
6
|
+
paths:
|
|
7
|
+
- '**.cpp'
|
|
8
|
+
- '**.hpp'
|
|
9
|
+
- '**.py'
|
|
10
|
+
- 'setup.py'
|
|
11
|
+
- 'setup.cfg'
|
|
12
|
+
- 'pyproject.toml'
|
|
13
|
+
- '**.yml'
|
|
14
|
+
|
|
15
|
+
pull_request_target:
|
|
16
|
+
types: [closed]
|
|
17
|
+
branches: [master]
|
|
18
|
+
paths:
|
|
19
|
+
- '**.cpp'
|
|
20
|
+
- '**.hpp'
|
|
21
|
+
- '**.py'
|
|
22
|
+
- 'setup.py'
|
|
23
|
+
- 'setup.cfg'
|
|
24
|
+
- 'pyproject.toml'
|
|
25
|
+
|
|
26
|
+
workflow_dispatch:
|
|
27
|
+
inputs:
|
|
28
|
+
dry-run:
|
|
29
|
+
description: 'Dry run (no actual upload to PyPI)'
|
|
30
|
+
type: boolean
|
|
31
|
+
default: true
|
|
32
|
+
|
|
33
|
+
jobs:
|
|
34
|
+
linux-build:
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
env:
|
|
37
|
+
TWINE_USERNAME: __token__
|
|
38
|
+
IS_DRY_RUN: ${{ !(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true) }}
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
with:
|
|
42
|
+
submodules: 'true'
|
|
43
|
+
- name: Get version
|
|
44
|
+
id: get_version
|
|
45
|
+
run: |
|
|
46
|
+
python -m pip install setuptools-scm
|
|
47
|
+
echo "version=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")" >> $GITHUB_OUTPUT
|
|
48
|
+
- name: Python wheels manylinux stable build
|
|
49
|
+
uses: RalfG/python-wheels-manylinux-build@v0.5.0
|
|
50
|
+
with:
|
|
51
|
+
python-versions: 'cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312'
|
|
52
|
+
- name: Upload wheel testpypi
|
|
53
|
+
if: env.IS_DRY_RUN == 'true'
|
|
54
|
+
env:
|
|
55
|
+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
|
|
56
|
+
run: |
|
|
57
|
+
python -m pip install wheel setuptools twine packaging
|
|
58
|
+
python -m pip install --upgrade twine packaging
|
|
59
|
+
python -m twine upload --repository testpypi dist/*-manylinux*.whl --verbose
|
|
60
|
+
continue-on-error: ${{ env.IS_DRY_RUN == 'true' }}
|
|
61
|
+
- name: Upload wheel to production
|
|
62
|
+
if: env.IS_DRY_RUN == 'false'
|
|
63
|
+
env:
|
|
64
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
|
65
|
+
run: |
|
|
66
|
+
python -m pip install wheel setuptools twine packaging
|
|
67
|
+
python -m pip install --upgrade twine packaging
|
|
68
|
+
python -m twine upload dist/*-manylinux*.whl
|
|
69
|
+
continue-on-error: ${{ env.IS_DRY_RUN == 'true' }}
|
|
70
|
+
|
|
71
|
+
other-os-build:
|
|
72
|
+
runs-on: ${{ matrix.os }}
|
|
73
|
+
env:
|
|
74
|
+
TWINE_USERNAME: __token__
|
|
75
|
+
IS_DRY_RUN: ${{ !(github.event_name == 'pull_request_target' && github.event.pull_request.merged == true) }}
|
|
76
|
+
strategy:
|
|
77
|
+
matrix:
|
|
78
|
+
os: [macos-latest, windows-latest]
|
|
79
|
+
python-version: ['3.9', '3.10', '3.11', '3.12']
|
|
80
|
+
steps:
|
|
81
|
+
- uses: actions/checkout@v4
|
|
82
|
+
with:
|
|
83
|
+
submodules: 'true'
|
|
84
|
+
- name: Get version
|
|
85
|
+
id: get_version
|
|
86
|
+
run: |
|
|
87
|
+
python -m pip install setuptools-scm
|
|
88
|
+
echo "version=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")" >> $GITHUB_OUTPUT
|
|
89
|
+
- name: Set up Python
|
|
90
|
+
uses: actions/setup-python@v4
|
|
91
|
+
with:
|
|
92
|
+
python-version: ${{ matrix.python-version }}
|
|
93
|
+
- name: build wheel
|
|
94
|
+
run: |
|
|
95
|
+
python -m pip install build wheel setuptools twine packaging
|
|
96
|
+
python -m pip install --upgrade twine packaging
|
|
97
|
+
python -m build
|
|
98
|
+
- name: Upload wheel testpypi
|
|
99
|
+
if: env.IS_DRY_RUN == 'true'
|
|
100
|
+
env:
|
|
101
|
+
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
|
|
102
|
+
run: |
|
|
103
|
+
python -m pip install wheel setuptools twine packaging
|
|
104
|
+
python -m pip install --upgrade twine packaging
|
|
105
|
+
python -m twine upload --repository testpypi dist/* --verbose
|
|
106
|
+
continue-on-error: ${{ env.IS_DRY_RUN == 'true' }}
|
|
107
|
+
- name: Upload wheel to production
|
|
108
|
+
if: env.IS_DRY_RUN == 'false'
|
|
109
|
+
env:
|
|
110
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
|
111
|
+
run: |
|
|
112
|
+
python -m pip install wheel setuptools twine packaging
|
|
113
|
+
python -m pip install --upgrade twine packaging
|
|
114
|
+
python -m twine upload dist/*
|
|
115
|
+
continue-on-error: ${{ env.IS_DRY_RUN == 'true' }}
|
|
116
|
+
release-build:
|
|
117
|
+
needs: [ linux-build, other-os-build ]
|
|
118
|
+
if: (github.event_name == 'pull_request_target' && github.event.pull_request.merged == true)
|
|
119
|
+
runs-on: ubuntu-latest
|
|
120
|
+
steps:
|
|
121
|
+
- uses: actions/checkout@v4
|
|
122
|
+
- name: Get version
|
|
123
|
+
id: get_version
|
|
124
|
+
run: |
|
|
125
|
+
python -m pip install setuptools-scm
|
|
126
|
+
echo "version=$(python -c "import setuptools_scm; print(setuptools_scm.get_version())")" >> $GITHUB_OUTPUT
|
|
127
|
+
- name: Create release
|
|
128
|
+
env:
|
|
129
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
130
|
+
run: |
|
|
131
|
+
gh release create "v${{ steps.get_version.outputs.version }}" \
|
|
132
|
+
--repo="$GITHUB_REPOSITORY" \
|
|
133
|
+
--title="${GITHUB_REPOSITORY#*/} ${{ steps.get_version.outputs.version }}" \
|
|
134
|
+
--generate-notes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
name: Release the archive
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
inputs:
|
|
7
|
+
release-version:
|
|
8
|
+
required: true
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
release:
|
|
15
|
+
name: Release pushed tag
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
steps:
|
|
18
|
+
- name: Create release
|
|
19
|
+
env:
|
|
20
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
21
|
+
tag: ${{ github.event.inputs.release-version }}
|
|
22
|
+
run: |
|
|
23
|
+
gh release create "$tag" \
|
|
24
|
+
--repo="$GITHUB_REPOSITORY" \
|
|
25
|
+
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
|
|
26
|
+
--generate-notes
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
|
|
2
|
+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
|
|
3
|
+
|
|
4
|
+
name: Test Python bindings
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ "master" ]
|
|
9
|
+
paths:
|
|
10
|
+
- core/
|
|
11
|
+
- python/
|
|
12
|
+
- cmtj/**/*.py
|
|
13
|
+
- pyproject.toml
|
|
14
|
+
- setup.py
|
|
15
|
+
- tests/*.py
|
|
16
|
+
|
|
17
|
+
pull_request:
|
|
18
|
+
branches: [ "master" ]
|
|
19
|
+
paths-ignore:
|
|
20
|
+
- '**.yaml'
|
|
21
|
+
- '**.md'
|
|
22
|
+
- 'docs/**'
|
|
23
|
+
- 'examples/**'
|
|
24
|
+
- LICENSE
|
|
25
|
+
- mkdocs.yml
|
|
26
|
+
workflow_dispatch:
|
|
27
|
+
|
|
28
|
+
jobs:
|
|
29
|
+
build-linux:
|
|
30
|
+
runs-on: ubuntu-latest
|
|
31
|
+
strategy:
|
|
32
|
+
fail-fast: true
|
|
33
|
+
matrix:
|
|
34
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
35
|
+
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
with:
|
|
39
|
+
submodules: 'true'
|
|
40
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
41
|
+
uses: actions/setup-python@v4
|
|
42
|
+
with:
|
|
43
|
+
python-version: ${{ matrix.python-version }}
|
|
44
|
+
- name: Install dependencies
|
|
45
|
+
run: |
|
|
46
|
+
python -m pip install --upgrade pip
|
|
47
|
+
python -m pip install flake8 pytest pybind11 pytest-xdist
|
|
48
|
+
python -m pip install -e .[utils,test]
|
|
49
|
+
|
|
50
|
+
- name: Test with pytest
|
|
51
|
+
run: |
|
|
52
|
+
pytest
|
|
53
|
+
|
|
54
|
+
build-windows:
|
|
55
|
+
runs-on: windows-latest
|
|
56
|
+
strategy:
|
|
57
|
+
fail-fast: true
|
|
58
|
+
matrix:
|
|
59
|
+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
|
|
60
|
+
|
|
61
|
+
steps:
|
|
62
|
+
- uses: actions/checkout@v4
|
|
63
|
+
with:
|
|
64
|
+
submodules: 'true'
|
|
65
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
66
|
+
uses: actions/setup-python@v4
|
|
67
|
+
with:
|
|
68
|
+
python-version: ${{ matrix.python-version }}
|
|
69
|
+
- name: Install dependencies
|
|
70
|
+
run: |
|
|
71
|
+
python -m pip install --upgrade pip
|
|
72
|
+
python -m pip install flake8 pytest pybind11 pytest-xdist
|
|
73
|
+
python -m pip install -e .[utils,test]
|
|
74
|
+
|
|
75
|
+
- name: Test with pytest
|
|
76
|
+
run: |
|
|
77
|
+
pytest
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# See https://pre-commit.com for more information
|
|
2
|
+
# See https://pre-commit.com/hooks.html for more hooks
|
|
3
|
+
|
|
4
|
+
exclude: "^\
|
|
5
|
+
(third_party/kissfft)|\
|
|
6
|
+
(build/.*)|\
|
|
7
|
+
(.github/.*)|\
|
|
8
|
+
(.vscode/.*)|\
|
|
9
|
+
(^tests)|\
|
|
10
|
+
(docs/api/.*)|\
|
|
11
|
+
(core/compute.hpp)|\
|
|
12
|
+
(defaults.cfg)
|
|
13
|
+
"
|
|
14
|
+
|
|
15
|
+
repos:
|
|
16
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
17
|
+
rev: v4.6.0
|
|
18
|
+
hooks:
|
|
19
|
+
- id: check-added-large-files # prevents giant files from being committed.
|
|
20
|
+
- id: check-case-conflict # checks for files that would conflict in case-insensitive filesystems.
|
|
21
|
+
- id: check-merge-conflict # checks for files that contain merge conflict strings.
|
|
22
|
+
- id: check-yaml # checks yaml files for parseable syntax.
|
|
23
|
+
- id: detect-private-key # detects the presence of private keys.
|
|
24
|
+
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline.
|
|
25
|
+
- id: fix-byte-order-marker # removes utf-8 byte order marker.
|
|
26
|
+
- id: mixed-line-ending # replaces or checks mixed line ending.
|
|
27
|
+
- id: requirements-txt-fixer # sorts entries in requirements.txt.
|
|
28
|
+
- id: trailing-whitespace # trims trailing whitespace.
|
|
29
|
+
|
|
30
|
+
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
31
|
+
rev: v4.0.0-alpha.8
|
|
32
|
+
hooks:
|
|
33
|
+
- id: prettier
|
|
34
|
+
files: \.(html|json|markdown|md|yaml|yml)$
|
|
35
|
+
exclude: (^docs/api/.*)
|
|
36
|
+
|
|
37
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
38
|
+
# Ruff version.
|
|
39
|
+
rev: v0.12.3
|
|
40
|
+
hooks:
|
|
41
|
+
# Run the linter.
|
|
42
|
+
- id: ruff
|
|
43
|
+
files: ^cmtj
|
|
44
|
+
args: ["--fix"]
|
|
45
|
+
types_or: [python, pyi]
|
|
46
|
+
# Run the formatter.
|
|
47
|
+
- id: ruff-format
|
|
48
|
+
files: ^cmtj
|
|
49
|
+
types_or: [python, pyi]
|
|
50
|
+
|
|
51
|
+
- repo: https://github.com/pocc/pre-commit-hooks
|
|
52
|
+
rev: v1.3.5
|
|
53
|
+
hooks:
|
|
54
|
+
- id: cppcheck
|
|
55
|
+
args: ["--check-level=exhaustive"]
|
|
56
|
+
files: ^(cmtj|core)/.*\.(cpp|hpp)$
|
|
57
|
+
exclude: ^third_party/ | ^core/compute.hpp
|
|
58
|
+
- id: clang-format
|
|
59
|
+
args: [-i]
|
|
60
|
+
files: ^(cmtj|core)/.*\.(cpp|hpp)$
|
|
61
|
+
exclude: ^third_party/ | ^core/compute.hpp
|
|
62
|
+
- id: clang-tidy
|
|
63
|
+
args: [-checks=*]
|
|
64
|
+
files: ^(cmtj|core)/.*\.(cpp|hpp)$
|
|
65
|
+
exclude: ^third_party/ | ^core/compute.hpp
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# .readthedocs.yaml
|
|
2
|
+
# Read the Docs configuration file
|
|
3
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
4
|
+
|
|
5
|
+
# Required
|
|
6
|
+
version: 2
|
|
7
|
+
|
|
8
|
+
mkdocs:
|
|
9
|
+
configuration: mkdocs.yml
|
|
10
|
+
|
|
11
|
+
# Optionally set the version of Python and requirements required to build your docs
|
|
12
|
+
python:
|
|
13
|
+
version: 3.7
|
|
14
|
+
install:
|
|
15
|
+
- requirements: docs/requirements.txt
|