Skip to content

Commit

Permalink
move spelling exceptions to support scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Feb 12, 2024
1 parent 3b7f4eb commit b89ddab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 36 deletions.
31 changes: 3 additions & 28 deletions .pylint_dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
11 changes: 3 additions & 8 deletions pylint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b89ddab

Please sign in to comment.