diff --git a/.pylint_dict.txt b/.pylint_dict.txt index 9392a8031..adce7d510 100644 --- a/.pylint_dict.txt +++ b/.pylint_dict.txt @@ -12,34 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Our abbreviations/names -bmp -bmpc -Spalloc -ybug +# We use a single exception files for all the main repsitories +# It can be found at: +# https://github.com/SpiNNakerManchester/SupportScripts/blob/master/actions/pylint/default_dict.txt -# Our special words -keepalive -# Python packages -websocket - -# Python types -BufferedIOBase -CPUInfo -CPUInfos -DiagnosticFilter -DiagnosticFilterDestination -DiagnosticFilterDefaultRoutingStatus -DiagnosticFilterEmergencyRoutingStatus -DiagnosticFilterPacketType -DiagnosticFilterPayloadStatus -DiagnosticFilterSource -HeapElement -PreparedRequest -SCPResult -SpallocMachine -SpinnakerBootMessage -SystemVariableDefinition -WebSocket diff --git a/pylint.bash b/pylint.bash index 1e6403640..f5e17dd70 100644 --- a/pylint.bash +++ b/pylint.bash @@ -22,16 +22,11 @@ # requires the spelling dicts # sudo apt-get -o Dpkg::Use-Pty=0 install --fix-missing enchant-2 hunspell hunspell-en-gb -dict=/tmp/dict.txt - -cat "../SupportScripts/actions/pylint/default_dict.txt" >$dict -cat ".pylint_dict.txt" >>$dict - -pylint --output-format=colorized --disable=R --persistent=no --jobs=1 --rcfile=../SupportScripts/actions/pylint/strict_rcfile --spelling-dict=en_GB --spelling-private-dict-file=$dict --disable=import-error spinnman +pylint --output-format=colorized --disable=R --persistent=no --jobs=1 --rcfile=../SupportScripts/actions/pylint/strict_rcfile --spelling-dict=en_GB --spelling-private-dict-file="../SupportScripts/actions/pylint/default_dict.txt" --disable=import-error spinnman # one test -# pylint --enable=wrong-import-order --output-format=colorized --disable=R --persistent=no --jobs=1 --rcfile=../SupportScripts/actions/pylint/strict_rcfile --spelling-dict=en_GB --spelling-private-dict-file=$dict --disable=all spinnman +# pylint --enable=wrong-import-order --output-format=colorized --disable=R --persistent=no --jobs=1 --rcfile=../SupportScripts/actions/pylint/strict_rcfile --spelling-dict=en_GB --spelling-private-dict-file="../SupportScripts/actions/pylint/default_dict.txt" --disable=all spinnman # check docs -# pylint --enable=missing-function-docstring,missing-class-docstring,invalid-characters-in-docstring,wrong-spelling-in-comment,wrong-spelling-in-docstring --output-format=colorized --disable=R --persistent=no --jobs=1 --rcfile=../SupportScripts/actions/pylint/strict_rcfile --spelling-dict=en_GB --spelling-private-dict-file=$dict --disable=all spinnman +# pylint --enable=missing-function-docstring,missing-class-docstring,invalid-characters-in-docstring,wrong-spelling-in-comment,wrong-spelling-in-docstring --output-format=colorized --disable=R --persistent=no --jobs=1 --rcfile=../SupportScripts/actions/pylint/strict_rcfile --spelling-dict=en_GB --spelling-private-dict-file="../SupportScripts/actions/pylint/default_dict.txt" --disable=all spinnman