Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions examples/extra_models_examples/vogels_2011.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
from typing import Optional

import matplotlib.pyplot as pylab
import numpy
Expand Down Expand Up @@ -46,7 +45,7 @@ class Vogels2011:

def __init__(self, split: bool = False):
if split:
self._n_synapse_cores: Optional[int] = 1
self._n_synapse_cores: int | None = 1
else:
self._n_synapse_cores = None

Expand Down
35 changes: 6 additions & 29 deletions ruff.bash
Original file line number Diff line number Diff line change
Expand Up @@ -24,34 +24,11 @@ if [ "$#" -eq "0" ]
else
python3 -m venv ../SupportScripts/venv/ruff_runner
source ../SupportScripts/venv/ruff_runner/bin/activate
python3 -m pip install --upgrade ruff
python3 -m pip install --upgrade ruff flake8
fi

echo using ruff.toml
ruff check ../SpiNNUtils/spinn_utilities ../SpiNNUtils/unittests \
../SpiNNMachine/spinn_machine ../SpiNNMachine/unittests \
../SpiNNMan/spinnman ../SpiNNMan/unittests \
../SpiNNMan/spinnman_integration_tests ../SpiNNMan/manual_scripts \
../PACMAN/pacman ../PACMAN/pacman_test_objects ../PACMAN/unittests \
../spalloc/spalloc_client ../spalloc/tests \
../SpiNNFrontEndCommon/spinn_front_end_common ../SpiNNFrontEndCommon/unittests \
../SpiNNFrontEndCommon/fec_integration_tests \
../TestBase/spinnaker_testbase ../TestBase/unittests \
../sPyNNaker/spynnaker ../sPyNNaker/unittests \
../sPyNNaker/spynnaker_integration_tests ../sPyNNaker/proxy_integration_tests \
examples balanced_random learning sudoku synfire \
--target-version py310 --config ../SupportScripts/actions/ruff/ruff.toml
echo using ruff_up.toml
ruff check ../SpiNNUtils/spinn_utilities ../SpiNNUtils/unittests \
../SpiNNMachine/spinn_machine ../SpiNNMachine/unittests \
../SpiNNMan/spinnman ../SpiNNMan/unittests \
../SpiNNMan/spinnman_integration_tests ../SpiNNMan/manual_scripts \
../PACMAN/pacman ../PACMAN/pacman_test_objects ../PACMAN/unittests \
../spalloc/spalloc_client ../spalloc/tests \
../SpiNNFrontEndCommon/spinn_front_end_common ../SpiNNFrontEndCommon/unittests \
../SpiNNFrontEndCommon/fec_integration_tests \
../TestBase/spinnaker_testbase ../TestBase/unittests \
../sPyNNaker/spynnaker ../sPyNNaker/unittests \
../sPyNNaker/spynnaker_integration_tests ../sPyNNaker/proxy_integration_tests \
examples balanced_random learning sudoku synfire \
--target-version py310 --config ../SupportScripts/actions/ruff/ruff_up.toml
echo ruff using ruff_ignore.toml
ruff check examples balanced_random learning sudoku synfire \
--target-version py310 --config ../SupportScripts/actions/ruff/ruff_ignore.toml --fix
echo flake8
flake8 examples balanced_random learning sudoku synfire
Loading