third_party.pylibs.pylint.src/.pyenchant_pylint_custom_dict.txt
Drummond Ogilvie 97b07f7466 Add more cases that emit bad-plugin-value (#7284)
* Add x-failing test for issue 7264 case 3

This is the case where a plugin can be imported only after the init-hook
is run, and the init hook is specified in a pylintrc file
We would expect the module to not load in any case, and cause the
emission of a bad-plugin-value message.

* _dynamic_plugins is a dict not a set

This is in preparation for caching the loaded modules, and for storing
other information that will help in identifying times loading is
dependent on init-hook magic.

* Use cached module objects for load_configuration

This fixes case 3 in #7264, and is technically a breaking change, in
that it now emits a message for what would have previously been a silent
failure.

* Interim review comment fixes

1. Remove the xfail that snuck back in after the rebases.
2. Now that fake_home yields a str, update the type hint.

* Add test for bad plugin with duplicated load

This is case 6 in issue #7264, and represents the other silent failure
that is being made non-silent by this change.

* Apply review feedback

- Add an ordering test for CLI arguments
- Add clarifying comments on affected functions
- Tidy up test assertions to be more pythonic

Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
2022-09-07 14:47:49 +02:00

366 lines
3.0 KiB
Plaintext

abc
abcmeta
abstractproperty
analyse
analysed
analysing
arg
argparse
args
argumentdefaultshelpformatter
argumentparser
argumentsparser
argv
ascii
assignattr
assignname
ast
AST
astroid
async
asynccontextmanager
attr
attrib
backport
BaseChecker
basename
behaviour
bidi
Bitbucket
bla
bom
bool
boolean
boolop
boundmethod
builtins
bw
callables
cardinality
cd
cfg
changelog
cheaders
chroot
chunker
classdef
classdiagram
classmethod
classmethod's
classname
classobj
CLI
cls
cmp
codebase
codec
codecs
col's
conf
config
const
Const
contextlib
contextmanager
contravariance
contravariant
cpython
CPython
csv
CVE
cwd
cyclomatic
dataclass
datetime
debian
deepcopy
defaultdicts
defframe
defstmts
deleter
dependabot
deque
destructured
destructuring
diadefs
diadefslib
dictcomp
dicts
dir
dirname
docparams
docstring
docstrings
dunder
elif
elif's
elt
emittable
encodings
endswith
enum
enums
epilog
epylint
epytext
erroring
etree
expr
favour
filepath
filestream
finalbody
# TODO Remove when we are able to remove our own symbols
fixme
Flymake
fmt
formatter
formfeed
fromlineno
fullname
func
functiøn
functiondef
functools
genexpr
getattr
globals
GPL
graphname
graphviz
guido's
gv
hashable
hmac
html
idgeneratormixin
ifexpr
importedname
importfrom
importnode
importschecker
InferenceError
ini
INI
init
initializer
inlinevar
instantiation
isdir
isfile
isinstance
isort
iter
itered
iterable
iterables
iteritems
jn
jpg
json
jx
jython
# class is a reserved word
klass
kwarg
kwargs
kwonlyargs
latin
len
lhs
linecache
lineno
linenum
lineset
lineset's
linesets
linkers
linter
linux
listcomp
Logilab
longstring
lsp
mapfile
mapreduce
maxsize
maxsplit
mcs
mermaidjs
metaclass
metaclasses
misdesign
misdesigns
mixin
modname
monkeypatch
mro
# Used so much that we need the abbreviation
msg
msgid
msgids
msgs
msg-template
mult
multiline
multiset
multisets
myattr
myfunction
mymain
mymethod
mymodule
mypy
namedtuple
namespace
newsfile
newstyle
nl
nodename
nodeng
noinspection
nonlocal
nonlocals
num
numpy
ok
optdict
optik
optionals
optiondict
optname
optparse
optvalue
orelse
os
outputfile
overridable
params
paren
parens
passthru
positionals
png
pragma
pragma's
pragmas
pre
preorder
prepended
proc
py
pyenchant
pyfile
pylint
pylintdict
pylintrc
pylint's
pypy
pyreverse
pytest
qname
rawcheckers
rc
rcfile
readlines
recognise
recurse
recurses
redef
reportid
rgx
rheaders
rhs
roid
rsplit
rst
rstrip
rtype
runtime
se
sep
setcomp
shortstrings
singledispatch
spammy
sqlalchemy
src
starargs
staticmethod
stderr
stdin
stdlib
stdout
stmt
str
stringified
subclasses
subcommands
subdicts
subgraphs
sublists
subparsers
subparts
subprocess
subscriptable
subscripted
subtree
supcls
superclass
symilar
sys
tbump
tempfile
testcase
testdata
testoptions
tmp
tokencheckers
tokeninfo
tokenize
tokenizer
toml
tomlkit
toplevel
towncrier
tp
truthness
tryexcept
txt
typecheck
typechecking
typeddict
typehint
typeshed
uid
uml
un
unary
unflattens
unhandled
unicode
Uninferable
uninferable
unittest
# prefix for string
ur
ureport
ureports
utf
utils
validator
vararg
varargs
variadic
variadics
vcg
vcg's
vectorisation
virtualized
wc
xfails
xml
xyz
yml
yoda