Skip to content

Commit 18b4868

Browse files
authored
Merge branch 'master' into remove_nest_vars_sh
2 parents f29e475 + 78caf5f commit 18b4868

510 files changed

Lines changed: 5280 additions & 5285 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ SpaceBeforeInheritanceColon: true
110110
SpaceBeforeParens: ControlStatements
111111
SpaceBeforeRangeBasedForLoopColon: true
112112
SpaceInEmptyParentheses: false
113-
SpacesBeforeTrailingComments: 1
113+
SpacesBeforeTrailingComments: 2
114114
SpacesInAngles: true
115115
SpacesInContainerLiterals: true
116116
SpacesInCStyleCastParentheses: true

.github/workflows/build_nest_wheel.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Build NEST simulator wheels
22

33
on:
4-
push:
5-
branches: [master, pynest-ng, hep_pynest-ng]
6-
pull_request:
74
release:
85
types: [published]
96
workflow_dispatch:

.github/workflows/nestbuildmatrix.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
clang-format:
1111
runs-on: "ubuntu-22.04"
1212
env:
13-
CLANG_REQUIRE_VERSION: 17.0.4
13+
CLANG_REQUIRE_VERSION: 22.1.0
1414
CLANG_FORMAT_FILE: ".clang-format"
1515
steps:
1616
- name: Harden Runner
@@ -30,7 +30,7 @@ jobs:
3030
3131
- name: "Run clang-format..."
3232
run: |
33-
files=$(find . \( -iname "*.h" -o -iname "*.c" -o -iname "*.cc" -o -iname "*.cpp" \) -not -path "./thirdparty/*")
33+
files=$(find . \( -iname "*.h" -o -iname "*.c" -o -iname "*.cc" -o -iname "*.cpp" \) -not -path "./thirdparty/*" -not -path "./cmake/CheckFiles/*")
3434
diff -u <(cat ${files}) <(clang-format ${files})
3535
3636
shellcheck:
@@ -62,7 +62,7 @@ jobs:
6262
- name: "Set up Python 3.x"
6363
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
6464
with:
65-
python-version: 3.9
65+
python-version: "3.10"
6666

6767
- name: "Install dependencies"
6868
run: |
@@ -442,7 +442,7 @@ jobs:
442442
fetch-depth: 0
443443

444444
- name: "Run black..."
445-
uses: psf/black@af0ba72a73598c76189d6dd1b21d8532255d5942 # 25.9.0
445+
uses: psf/black@6305bf1ae645ab7541be4f5028a86239316178eb # 26.1.0
446446
with:
447447
jupyter: true
448448

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v5.0.0
3+
rev: v6.0.0
44
hooks:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
@@ -15,19 +15,19 @@ repos:
1515
- id: gitleaks
1616

1717
- repo: https://github.com/pycqa/isort
18-
rev: 5.12.0
18+
rev: 8.0.1
1919
hooks:
2020
- id: isort
2121
args: ["--profile", "black", "--thirdparty", "nest"]
2222

2323
- repo: https://github.com/psf/black
24-
rev: 23.7.0
24+
rev: 26.1.0
2525
hooks:
2626
- id: black
2727
language_version: python3
2828

2929
- repo: https://github.com/shellcheck-py/shellcheck-py
30-
rev: v0.10.0.1
30+
rev: v0.11.0.1
3131
hooks:
3232
- id: shellcheck
3333
# explicitly add input files that are not "*.sh"
@@ -50,7 +50,7 @@ repos:
5050
]
5151

5252
- repo: https://github.com/pre-commit/mirrors-clang-format
53-
rev: v17.0.4
53+
rev: v22.1.0
5454
hooks:
5555
- id: clang-format
5656
types_or: [c++]

build_support/check_copyright_headers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
3939
"""
4040

41-
4241
import os
4342
import re
4443
import sys

build_support/generate_modelsmodule.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,12 @@ def generate_modelsmodule():
246246
modeldir.mkdir(parents=True, exist_ok=True)
247247
with open(modeldir / fname, "w") as file:
248248
file.write(copyright_header.replace("{{file_name}}", fname))
249-
file.write(
250-
dedent(
251-
"""
249+
file.write(dedent("""
252250
#include "models.h"
253251
254252
// Generated includes
255253
#include "config.h"
256-
"""
257-
)
258-
)
254+
"""))
259255

260256
for model_type, guards_fnames in includes.items():
261257
file.write(f"\n// {model_type.capitalize()} models\n")

cmake/ProcessOptions.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,8 @@ function( NEST_PROCESS_STATIC_LIBRARIES )
173173

174174
# Note: "$ORIGIN" (on Linux) and "@loader_path" (on MacOS) are not CMake variables, but special keywords for the
175175
# Linux resp. the macOS dynamic loader. They refer to the path in which the object is located, e.g.
176-
# ``${CMAKE_INSTALL_PREFIX}/bin`` for the nest and sli executables, ``${CMAKE_INSTALL_PREFIX}/lib/nest`` for all
177-
# dynamic libraries except PyNEST (libnestkernel.so, etc.), and something like
178-
# ``${CMAKE_INSTALL_PREFIX}/lib/python3.x/site-packages/nest`` for ``pynestkernel.so``. The RPATH is relative to
176+
# ``${CMAKE_INSTALL_PREFIX}/bin`` for helper scripts and something like
177+
# ``${CMAKE_INSTALL_PREFIX}/lib/python3.x/site-packages/nest`` for ``nestkernel_api.so``. The RPATH is relative to
179178
# this origin, so the binary ``bin/nest`` can find the files in the relative location ``../lib/nest``, and
180179
# similarly for PyNEST and the other libraries. For simplicity, we set all the possibilities on all generated
181180
# objects.

doc/fulldoc.conf.in

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,13 +746,11 @@ WARN_LOGFILE = doxygen.log
746746
INPUT = @PROJECT_SOURCE_DIR@/README.md \
747747
@PROJECT_SOURCE_DIR@/doc \
748748
@PROJECT_SOURCE_DIR@/examples \
749-
@PROJECT_SOURCE_DIR@/lib \
750749
@PROJECT_SOURCE_DIR@/libnestutil \
751750
@PROJECT_SOURCE_DIR@/models \
752751
@PROJECT_SOURCE_DIR@/nest \
753752
@PROJECT_SOURCE_DIR@/nestkernel \
754753
@PROJECT_SOURCE_DIR@/pynest \
755-
@PROJECT_SOURCE_DIR@/sli \
756754
@PROJECT_SOURCE_DIR@/testsuite
757755

758756
# This tag can be used to specify the character encoding of the source files

doc/htmldoc/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@
6868
"notfound.extension",
6969
]
7070

71-
autodoc_mock_imports = ["nest.pynestkernel", "nest.ll_api"]
71+
autodoc_mock_imports = [
72+
"nest.nestkernel_api", # compiled binary
73+
"flask", # optional server dependencies not present during docs build
74+
"flask_cors",
75+
"RestrictedPython",
76+
]
7277
mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
7378
# Add any paths that contain templates here, relative to this directory.
7479
templates_path = ["templates"]
@@ -100,6 +105,9 @@
100105

101106
# disable require js - mermaid doesn't work if require.js is loaded before it
102107
nbsphinx_requirejs_path = ""
108+
# Never execute notebooks during the build; render stored cell outputs as-is.
109+
# nest is not importable in the docs environment (compiled kernel not present).
110+
nbsphinx_execute = "never"
103111
# The version info for the project you're documenting, acts as replacement for
104112
# |version| and |release|, also used in various other places throughout the
105113
# built documents.

doc/htmldoc/developer_space/templates/pynest_api_template.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
]]
3737
"""
3838

39-
4039
from msilib.schema import Error
4140

4241

0 commit comments

Comments
 (0)