-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.bash
More file actions
executable file
·35 lines (31 loc) · 1.34 KB
/
Copy pathruff.bash
File metadata and controls
executable file
·35 lines (31 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# Copyright (c) 2026 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# This bash assumes that other repositories are installed in parallel
# ruffs SpiNNUtils, spinn_machine and unittests
if [ "$#" -eq "0" ]
then
echo "Using previous setup. Provide an argument to run setup"
source ../SupportScripts/venv/ruff_runner/bin/activate
else
python3 -m venv ../SupportScripts/venv/ruff_runner
source ../SupportScripts/venv/ruff_runner/bin/activate
python3 -m pip install --upgrade ruff flake8
fi
echo ruffusing ruff_ignore.toml
ruff check microcircuit unittests integration_tests \
--target-version py310 --config ../SupportScripts/actions/ruff/ruff_ignore.toml --fix
echo flake8
flake8 microcircuit unittests integration_tests