Closed Christian-B closed 8 months ago
This pr and later similar (but independent) prs make pylint checking stricter and also more constant between repositories.
I have done my best to only do one type of change per commit so reviewing the commits may be easiest.
Changes include: Using a global rcfile https://github.com/SpiNNakerManchester/SupportScripts/blob/master/actions/pylint/strict_rcfile Rather than one per repository
A global spelling exceptions list https://github.com/SpiNNakerManchester/SupportScripts/blob/master/actions/pylint/default_dict.txt
A pylint.bash file to make it easier to run pylint manually/locally using as close as possible to the github actions settings.
To support the pylint.bash finding other repositories without requiring them to be in the path
Note: The changes to support scripts are already in master as impossible to test otherwise!
A number of spelling changes found by either github or running locally.
The code changes are limited to -refactors some method or param names
Similar prs that can be done in any order: https://github.com/SpiNNakerManchester/SpiNNMachine/pull/236 https://github.com/SpiNNakerManchester/SpiNNMan/pull/391 https://github.com/SpiNNakerManchester/PACMAN/pull/541 https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/1157 https://github.com/SpiNNakerManchester/sPyNNaker/pull/1437
tested by http://apollo.cs.man.ac.uk:8080/blue/organizations/jenkins/Integration%20Tests/detail/pylint_default/3/pipeline
coverage: 88.271%. remained the same when pulling f1d5cfac66f4364d775686374bcde2c2c07e9ce5 on pylint_default into 3ee7bd0e376cf23216897dbc8e04d57d8ac809ef on master.
This pr and later similar (but independent) prs make pylint checking stricter and also more constant between repositories.
I have done my best to only do one type of change per commit so reviewing the commits may be easiest.
Changes include: Using a global rcfile https://github.com/SpiNNakerManchester/SupportScripts/blob/master/actions/pylint/strict_rcfile Rather than one per repository
A global spelling exceptions list https://github.com/SpiNNakerManchester/SupportScripts/blob/master/actions/pylint/default_dict.txt
A pylint.bash file to make it easier to run pylint manually/locally using as close as possible to the github actions settings.
To support the pylint.bash finding other repositories without requiring them to be in the path
Note: The changes to support scripts are already in master as impossible to test otherwise!
A number of spelling changes found by either github or running locally.
The code changes are limited to -refactors some method or param names
Similar prs that can be done in any order: https://github.com/SpiNNakerManchester/SpiNNMachine/pull/236 https://github.com/SpiNNakerManchester/SpiNNMan/pull/391 https://github.com/SpiNNakerManchester/PACMAN/pull/541 https://github.com/SpiNNakerManchester/SpiNNFrontEndCommon/pull/1157 https://github.com/SpiNNakerManchester/sPyNNaker/pull/1437
tested by http://apollo.cs.man.ac.uk:8080/blue/organizations/jenkins/Integration%20Tests/detail/pylint_default/3/pipeline