-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#603) * 🔧 Add `check-jsonschema`, `validate-pyproject-schema-store`, and `nb-clean` to the `pre-commit` configuration * 🔧 Add `prettier` to the `pre-commit` configuration and apply it to refactor files * 🔧 Add static type checking via `mypy` and also add `mypy` to the `pre-commit` configuration * 🔧 Add linting via `ruff` and also add `ruff` to the `pre-commit` configuration * 🔧 Extend the `ruff` configuration * 🚨 Fix `ruff` linter warnings
- Loading branch information
Showing
96 changed files
with
1,980 additions
and
1,565 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
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
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 |
---|---|---|
|
@@ -3,11 +3,11 @@ name: Clang-Tidy Review | |
on: | ||
pull_request: | ||
paths: | ||
- '**/*.hpp' | ||
- '**/*.cpp' | ||
- 'libs/**' | ||
- '.github/workflows/clang-tidy-review.yml' | ||
- '!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp' | ||
- "**/*.hpp" | ||
- "**/*.cpp" | ||
- "libs/**" | ||
- ".github/workflows/clang-tidy-review.yml" | ||
- "!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
|
@@ -37,16 +37,16 @@ jobs: | |
-DFICTION_EXPERIMENTS=ON | ||
-DMOCKTURTLE_EXAMPLES=OFF | ||
build_dir: build | ||
apt_packages: 'libreadline-dev,libtbb-dev' | ||
config_file: '.clang-tidy' | ||
exclude: 'libs/*,docs/*,benchmarks/*,bib/*,*/pyfiction/pybind11_mkdoc_docstrings.hpp,*/pyfiction/documentation.hpp' | ||
apt_packages: "libreadline-dev,libtbb-dev" | ||
config_file: ".clang-tidy" | ||
exclude: "libs/*,docs/*,benchmarks/*,bib/*,*/pyfiction/pybind11_mkdoc_docstrings.hpp,*/pyfiction/documentation.hpp" | ||
split_workflow: true | ||
|
||
- name: Make sure that the review file exists | ||
id: check-review-output | ||
uses: andstor/[email protected] | ||
with: | ||
files: 'clang-tidy-review-output.json' | ||
files: "clang-tidy-review-output.json" | ||
ignore_case: true | ||
|
||
- name: Upload review artifact | ||
|
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 |
---|---|---|
|
@@ -2,30 +2,30 @@ name: 📝 • CodeQL | |
|
||
on: | ||
push: | ||
branches: [ 'main' ] | ||
branches: ["main"] | ||
paths: | ||
- '**/*.hpp' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- '**/*.py' | ||
- 'libs/**' | ||
- '.github/workflows/codeql-analysis.yml' | ||
- '!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp' | ||
- "**/*.hpp" | ||
- "**/*.cpp" | ||
- "**/*.cmake" | ||
- "**/CMakeLists.txt" | ||
- "**/*.py" | ||
- "libs/**" | ||
- ".github/workflows/codeql-analysis.yml" | ||
- "!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp" | ||
pull_request: | ||
branches: [ 'main' ] | ||
branches: ["main"] | ||
paths: | ||
- '**/*.hpp' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- '**/*.py' | ||
- 'libs/**' | ||
- '.github/workflows/codeql-analysis.yml' | ||
- '!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp' | ||
- "**/*.hpp" | ||
- "**/*.cpp" | ||
- "**/*.cmake" | ||
- "**/CMakeLists.txt" | ||
- "**/*.py" | ||
- "libs/**" | ||
- ".github/workflows/codeql-analysis.yml" | ||
- "!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp" | ||
merge_group: | ||
schedule: | ||
- cron: '30 5 * * 6' | ||
- cron: "30 5 * * 6" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
|
@@ -46,9 +46,9 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'cpp', 'python' ] | ||
compiler: [ clang++-17 ] | ||
build_type: [ Debug ] | ||
language: ["cpp", "python"] | ||
compiler: [clang++-17] | ||
build_type: [Debug] | ||
|
||
steps: | ||
- name: Free Disk Space (Ubuntu) | ||
|
@@ -74,16 +74,16 @@ jobs: | |
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: '${{matrix.os}}-${{matrix.compiler}}' | ||
key: "${{matrix.os}}-${{matrix.compiler}}" | ||
variant: ccache | ||
save: true | ||
max-size: 10G | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13.x' | ||
cache: 'pip' | ||
python-version: "3.13.x" | ||
cache: "pip" | ||
|
||
- name: Setup mold | ||
uses: rui314/setup-mold@v1 | ||
|
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 |
---|---|---|
|
@@ -2,25 +2,25 @@ name: ☂️ • Coverage | |
|
||
on: | ||
push: | ||
branches: [ 'main' ] | ||
branches: ["main"] | ||
paths: | ||
- '**/*.hpp' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- 'libs/**' | ||
- '.github/workflows/coverage.yml' | ||
- '!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp' | ||
- "**/*.hpp" | ||
- "**/*.cpp" | ||
- "**/*.cmake" | ||
- "**/CMakeLists.txt" | ||
- "libs/**" | ||
- ".github/workflows/coverage.yml" | ||
- "!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp" | ||
pull_request: | ||
branches: [ 'main' ] | ||
branches: ["main"] | ||
paths: | ||
- '**/*.hpp' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- 'libs/**' | ||
- '.github/workflows/coverage.yml' | ||
- '!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp' | ||
- "**/*.hpp" | ||
- "**/*.cpp" | ||
- "**/*.cmake" | ||
- "**/CMakeLists.txt" | ||
- "libs/**" | ||
- ".github/workflows/coverage.yml" | ||
- "!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp" | ||
merge_group: | ||
|
||
concurrency: | ||
|
@@ -39,8 +39,8 @@ jobs: | |
build_and_test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-22.04 ] | ||
compiler: [ g++-11 ] | ||
os: [ubuntu-22.04] | ||
compiler: [g++-11] | ||
|
||
name: Coverage on ${{matrix.os}} with ${{matrix.compiler}} | ||
runs-on: ${{matrix.os}} | ||
|
@@ -57,16 +57,16 @@ jobs: | |
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: '${{matrix.os}}-${{matrix.compiler}}' | ||
key: "${{matrix.os}}-${{matrix.compiler}}" | ||
variant: ccache | ||
save: true | ||
max-size: 10G | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13.x' | ||
cache: 'pip' | ||
python-version: "3.13.x" | ||
cache: "pip" | ||
|
||
- name: Setup mold | ||
uses: rui314/setup-mold@v1 | ||
|
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 |
---|---|---|
|
@@ -2,25 +2,25 @@ name: 🍎 • CI | |
|
||
on: | ||
push: | ||
branches: [ 'main' ] | ||
branches: ["main"] | ||
paths: | ||
- '**/*.hpp' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- 'libs/**' | ||
- '.github/workflows/macos.yml' | ||
- '!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp' | ||
- "**/*.hpp" | ||
- "**/*.cpp" | ||
- "**/*.cmake" | ||
- "**/CMakeLists.txt" | ||
- "libs/**" | ||
- ".github/workflows/macos.yml" | ||
- "!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp" | ||
pull_request: | ||
branches: [ 'main' ] | ||
branches: ["main"] | ||
paths: | ||
- '**/*.hpp' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- 'libs/**' | ||
- '.github/workflows/macos.yml' | ||
- '!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp' | ||
- "**/*.hpp" | ||
- "**/*.cpp" | ||
- "**/*.cmake" | ||
- "**/CMakeLists.txt" | ||
- "libs/**" | ||
- ".github/workflows/macos.yml" | ||
- "!bindings/mnt/pyfiction/include/pyfiction/pybind11_mkdoc_docstrings.hpp" | ||
merge_group: | ||
|
||
concurrency: | ||
|
@@ -38,8 +38,8 @@ jobs: | |
build_and_test: | ||
strategy: | ||
matrix: | ||
os: [ macos-13, macos-14 ] | ||
compiler: [ g++-12, g++-13, g++-14, clang++ ] | ||
os: [macos-13, macos-14] | ||
compiler: [g++-12, g++-13, g++-14, clang++] | ||
include: | ||
- os: macos-13 | ||
architecture: x64 | ||
|
@@ -73,7 +73,7 @@ jobs: | |
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.13.x' | ||
python-version: "3.13.x" | ||
|
||
# Setup TBB for parallel STL algorithms via Homebrew | ||
- name: Setup TBB | ||
|
@@ -88,7 +88,7 @@ jobs: | |
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: '${{matrix.os}}-${{matrix.compiler}}' | ||
key: "${{matrix.os}}-${{matrix.compiler}}" | ||
variant: ccache | ||
save: true | ||
max-size: 10G | ||
|
@@ -103,7 +103,6 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
|
||
# Build and test pipeline for Debug mode | ||
|
||
- name: Create Build Environment (Debug) | ||
|
@@ -128,13 +127,12 @@ jobs: | |
- name: Build (Debug) | ||
working-directory: ${{github.workspace}}/build_debug | ||
run: cmake --build . --config Debug -j4 # all macOS runners provide at least 3 cores | ||
run: cmake --build . --config Debug -j4 # all macOS runners provide at least 3 cores | ||
|
||
- name: Test (Debug) | ||
working-directory: ${{github.workspace}}/build_debug | ||
run: ctest -C Debug --verbose --output-on-failure --repeat until-pass:3 --parallel 4 --exclude-regex "quality" | ||
|
||
|
||
# Build and test pipeline for Release mode | ||
|
||
- name: Create Build Environment (Release) | ||
|
@@ -159,7 +157,7 @@ jobs: | |
- name: Build (Release) | ||
working-directory: ${{github.workspace}}/build_release | ||
run: cmake --build . --config Release -j4 # all macOS runners provide at least 3 cores | ||
run: cmake --build . --config Release -j4 # all macOS runners provide at least 3 cores | ||
|
||
- name: Test (Release) | ||
working-directory: ${{github.workspace}}/build_release | ||
|
Oops, something went wrong.