Skip to content

Commit

Permalink
Issues fix (#104)
Browse files Browse the repository at this point in the history
* Fixed #100

* Fixed #102

* Added some more new words

* Added toplevel
  • Loading branch information
GirZ0n authored Aug 12, 2021
1 parent 5e8fdfc commit 469e50c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/python/review/inspectors/flake8/whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ arange
argmax
asctime
astype
barmode
betavariate
bgcolor
birthdate
blackbox
bs4
Expand All @@ -14,6 +16,8 @@ capwords
casefold
caseless
concat
config
configs
consts
coord
copysign
Expand Down Expand Up @@ -41,13 +45,15 @@ expm1
falsy
fillna
floordiv
fromkeys
fromstring
fullmatch
gensim
gmtime
groupby
halfs
hashable
hline
href
hyp
hyperskill
Expand All @@ -73,12 +79,15 @@ lemmatizer
lifes
lim
linalg
linecolor
linewidth
linspace
lowercased
lvl
lxml
matmul
multiline
nbins
ndarray
ndigits
ndim
Expand All @@ -100,6 +109,7 @@ rindex
rmdir
schur
scipy
showline
sigmoid
sqrt
src
Expand All @@ -116,14 +126,19 @@ tokenize
tokenized
tokenizer
tolist
toplevel
tracklist
truediv
truthy
unpickled
upd
util
utils
vline
webpage
whitespaces
writeback
xanchor
xaxes
yanchor
yaxis
1 change: 1 addition & 0 deletions src/python/review/inspectors/pylint/issue_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

CODE_TO_ISSUE_TYPE: Dict[str, IssueType] = {
'C0200': IssueType.BEST_PRACTICES, # consider using enumerate
'C0415': IssueType.BEST_PRACTICES, # import-outside-toplevel
'W0101': IssueType.ERROR_PRONE, # unreachable code
'W0102': IssueType.ERROR_PRONE, # dangerous default value
'W0104': IssueType.ERROR_PRONE, # statement doesn't have any effect
Expand Down
1 change: 1 addition & 0 deletions whitelist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ Namespace
case18
case34
removeprefix
toplevel

0 comments on commit 469e50c

Please sign in to comment.