Skip to content

Commit

Permalink
Updates to dictionary lists
Browse files Browse the repository at this point in the history
- Create dedicated pytest list
- Add some new entries to the python list:
  - 'checkable' comes from '@runtime_checkable', a decorator introduced.
    in python3.8 and also available in typing_extensions.
  - 'exc' comes from the default argument names for '__exit__'
    functions.
  - 'tokenize' is a stdlib module used by this package.
  - 'unittest' is a stdlib module.
- Remove a couple of duplicate entries from the technical list.
- Add some new entries to the technical list:
  - 'filesystem' should be obvious.
  - 'func' is common shorthand for 'function'.
  - 'lua' is the name of an embeddable programming language.
  - 'runtime' is a common word to differentiate from e.g. compile-time.
    It's also used in the '@runtime_checkable' decorator.
  - 'ttl' stands for Time-to-Live, and is a common acronym seen in many
    places, including DNS and caching.
  - 'util' is a commonly used name in programming for a file full of
    utility functions.
- Removed some entries from this package's custom allowlist that are
  already specified elsewhere.
  • Loading branch information
djmattyg007 authored and shaleh committed Mar 24, 2022
1 parent 58bd10e commit 98aa53e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
7 changes: 7 additions & 0 deletions flake8_spellcheck/pytest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
autouse
getfixturevalue
param
parametrize
params
usefixtures
xfail
5 changes: 4 additions & 1 deletion flake8_spellcheck/python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ botocore
builtins
bytearray
ceil
checkable
chmod
chr
classmethod
Expand All @@ -49,6 +50,7 @@ enum
env
environ
errno
exc
expanduser
findall
flake8
Expand Down Expand Up @@ -109,7 +111,6 @@ netloc
noqa
optionxform
optparse
parametrize
pathlib
pkgutil
posixpath
Expand Down Expand Up @@ -153,9 +154,11 @@ sys
tarfile
tempfile
timedelta
tokenize
traceback
tzinfo
tzname
unittest
urlencode
urljoin
urllib
Expand Down
8 changes: 6 additions & 2 deletions flake8_spellcheck/technical.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ dev
dynamodb
erroring
fh
filesystem
fixme
float32
float64
frontend
func
gcp
geoip
geoip2
Expand Down Expand Up @@ -57,6 +59,7 @@ js
json
jsonschema
jwt
lua
mariadb
md5
middleware
Expand All @@ -77,10 +80,10 @@ postgres
profiler
protobuf
pypi
pypi
qemu
readme
rng
runtime
s3
schema
schemas
Expand All @@ -94,13 +97,13 @@ sha256
stderr
stdin
stdout
stdout
symlink
titlecase
tls
todo
toolchain
toolchains
ttl
txt
uint
uint32
Expand All @@ -111,6 +114,7 @@ unhandled
unhashable
uri
usr
util
whitespace
windll
workspace
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ignore = W503,E501 # W503 is not PEP8 compliant and black doesnt always break l
application-import-names = flake8_spellcheck, tests
max-complexity = 10

spellcheck-add-dictionary = pytest

[bdist_wheel]
universal = 1

Expand Down
3 changes: 0 additions & 3 deletions whitelist.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
Aquilina
compat
config
flake8dir
fp
hacky
lineno
parametrize
tokenize

0 comments on commit 98aa53e

Please sign in to comment.