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 9c9edb7 commit 4a1d06b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 46 deletions.
41 changes: 3 additions & 38 deletions .pylint_dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# Our abbreviations/names
Navaridas
NER

# Our types
AbstractEdgePartition
AbstractSDRAMPartition
AbstractSingleSourcePartition
BaseKeyAndMask
ChipAndCore
MulticastEdgePartition
PacmanAlreadyExistsException
PlacementTuple
ReverseIPtagResource
RoutingInfo
RoutingTree
RTEntry
SDRAMMachineEdge
ValidationError

# Python packages
jsonschema

# Python bits
maxsize

# Our special words
heapq
mergable
precompressed
precompression
precompressor
quicksort
obj
reorderable
subobj
unmergeable
vartype

# 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
11 changes: 3 additions & 8 deletions pylint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,12 @@
# 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

# check all
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 pacman
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 pacman

# check one test
# pylint --enable=consider-using-f-string --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 pacman
# pylint --enable=consider-using-f-string --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 pacman

# 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 pacman
# 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 pacman

0 comments on commit 4a1d06b

Please sign in to comment.