Skip to content

Commit a9733ad

Browse files
authored
Merge pull request #1568 from SpiNNakerManchester/pylint
Pylint
2 parents f7c42d6 + d182d2b commit a9733ad

109 files changed

Lines changed: 134 additions & 307 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.

spynnaker/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
__version_day__ = "TBD"
1919
__version_name__ = "To Do"
2020

21-
_NAME = f"sPyNNaker_under_version({__version__}-{__version_name__})"
21+
NAME = f"sPyNNaker_under_version({__version__}-{__version_name__})"

spynnaker/pyNN/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def setup(timestep: Optional[Union[float, Literal["auto"]]] = None,
304304
~spinn_front_end_common.utilities.exceptions.ConfigurationException:
305305
if both ``n_chips_required`` and ``n_boards_required`` are used.
306306
"""
307-
# pylint: disable=global-statement,too-many-arguments
307+
# pylint: disable=global-statement
308308
# Check for "auto" values and None
309309
global __simulator
310310
if timestep is None:
@@ -395,7 +395,6 @@ def Projection(
395395
:return: a projection object for SpiNNaker
396396
:rtype: ~spynnaker.pyNN.models.projection.Projection
397397
"""
398-
# pylint: disable=too-many-arguments
399398
return SpiNNakerProjection(
400399
pre_synaptic_population=presynaptic_population,
401400
post_synaptic_population=postsynaptic_population, connector=connector,
@@ -555,7 +554,6 @@ def connect(pre: Population, post: Population, weight: float = 0.0,
555554
:param float p: probability
556555
:param ~pyNN.random.NumpyRNG rng: random number generator
557556
"""
558-
# pylint: disable=too-many-arguments
559557
SpynnakerDataView.check_user_can_act()
560558
__pynn["connect"](pre, post, weight, delay, receptor_type, p, rng)
561559

spynnaker/pyNN/connections/spif_live_spikes_connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ def __init__(self, receive_labels: Optional[Iterable[str]],
105105
the port that the toolchain will send the notification on (19999
106106
by default)
107107
"""
108-
# pylint: disable=too-many-arguments
109108
super().__init__(
110109
self.__do_start_resume, self.__do_stop_pause,
111110
local_host=local_host, local_port=local_port)

spynnaker/pyNN/connections/spynnaker_live_spikes_connection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def __init__(self, receive_labels: Optional[Iterable[str]] = None,
4747
the port that the toolchain will send the notification on (19999
4848
by default)
4949
"""
50-
# pylint: disable=too-many-arguments
5150
super().__init__(
5251
live_packet_gather_label, receive_labels, send_labels,
5352
local_host, local_port)

spynnaker/pyNN/data/spynnaker_data_view.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ class _SpynnakerDataModel(object):
5656
def __new__(cls) -> '_SpynnakerDataModel':
5757
if cls.__singleton is not None:
5858
return cls.__singleton
59-
# pylint: disable=protected-access
6059
obj = object.__new__(cls)
6160
cls.__singleton = obj
6261
obj._clear()
@@ -97,7 +96,6 @@ class SpynnakerDataView(FecDataView):
9796
Use this class wherever possible as it inherits all methods from all View
9897
classes.
9998
"""
100-
# pylint: disable=attribute-defined-outside-init
10199

102100
__spy_data = _SpynnakerDataModel()
103101

@@ -241,4 +239,4 @@ def get_sim_name(cls) -> str:
241239
242240
:rtype: str
243241
"""
244-
return _version._NAME # pylint: disable=protected-access
242+
return _version.NAME

spynnaker/pyNN/external_devices/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def EthernetControlPopulation(
239239
:rtype: ~spynnaker.pyNN.models.populations.Population
240240
:raises TypeError: If an invalid model class is used.
241241
"""
242-
# pylint: disable=too-many-arguments, global-statement
242+
# pylint: disable=global-statement
243243
population = Population(n_neurons, model, label=label)
244244
vertex, aec, vertex_label = __vtx(population)
245245
translator = aec.get_message_translator()

spynnaker/pyNN/external_devices_models/arbitrary_fpga_device.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ def __init__(
4141
:param label:
4242
:type label: str or None
4343
"""
44-
# pylint: disable=too-many-arguments
4544
conn = FPGAConnection(
4645
fpga_id, fpga_link_id, board_address, chip_coords)
4746
super().__init__(n_neurons, [conn], conn, label)

spynnaker/pyNN/external_devices_models/external_device_lif_control.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def __init__(
8383
:param float isyn_inh:
8484
(defaulted LIF neuron state variable initial value)
8585
"""
86-
# pylint: disable=too-many-arguments
87-
8886
if not devices:
8987
raise ConfigurationException("No devices specified")
9088

spynnaker/pyNN/external_devices_models/external_device_lif_control_vertex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ def __init__(
9393
:type splitter: SplitterPopulationVertex or None
9494
:param int n_colour_bits: The number of colour bits to use
9595
"""
96-
# pylint: disable=too-many-arguments
9796
if drop_late_spikes is None:
9897
drop_late_spikes = False
9998
extra_partition_ids = [

spynnaker/pyNN/external_devices_models/external_spinnaker_link_fpga_retina_device.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def __init__(
104104
:param str label:
105105
:param str board_address:
106106
"""
107-
# pylint: disable=too-many-arguments
108107
fixed_n_neurons = self.get_n_neurons(mode, polarity)
109108
super().__init__(
110109
n_atoms=fixed_n_neurons, spinnaker_link_id=spinnaker_link_id,

0 commit comments

Comments
 (0)