Skip to content

Commit 8d9a40c

Browse files
committed
typing support files
1 parent 6340ca8 commit 8d9a40c

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

mypyd.bash

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
# Copyright (c) 2024 The University of Manchester
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
# This bash assumes that other repositories are installed in paralled
18+
19+
# requires the latest mypy
20+
# pip install --upgrade mypy
21+
22+
utils="../SpiNNUtils/spinn_utilities"
23+
machine="../SpiNNMachine/spinn_machine"
24+
man="../SpiNNMan/spinnman"
25+
pacman="../PACMAN/pacman"
26+
spalloc="../spalloc/spalloc_client"
27+
fec="../SpiNNFrontEndCommon/spinn_front_end_common"
28+
test_base="../TestBase/spinnaker_testbase"
29+
spynnaker="../sPyNNaker/spynnaker"
30+
mypy --disallow-untyped-defs $utils $machine $man $pacman $spalloc $fec $test_base $spynnaker balanced_random examples
31+

pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Copyright (c) 2026 The University of Manchester
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
[build-system]
16+
requires = ["setuptools"]
17+
build-backend = "setuptools.build_meta"
18+
19+
[[tool.mypy.overrides]]
20+
module = ["docstring_parser", "matplotlib", "matplotlib.*", "pylab", "pyNN.*", "quantities", "neo", "neo.*", "scipy", "scipy.*", "lazyarray"]
21+
ignore_missing_imports = true

0 commit comments

Comments
 (0)