Skip to content

Commit

Permalink
{Pylint} Ignore tests folders (Azure#3352)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored May 12, 2021
1 parent 9c41bec commit bad8f3b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ignore =
F811, # redefinition of unused, to be removed in the future
C901 # code flow is too complex, too many violations, to be removed in the future
W504 # line break after binary operator effect on readability is subjective
exclude =
exclude =
*/vendored_sdks
docs
scripts
Expand All @@ -17,3 +17,4 @@ exclude =
./src/managementpartner/azext_managementpartner/managementpartner
./src/subscription/azext_subscription/subscription
*/grammar/
tests
36 changes: 14 additions & 22 deletions pylintrc
Original file line number Diff line number Diff line change
@@ -1,30 +1,22 @@
[MASTER]
ignore-patterns=test_*
ignore=tests,generated,vendored_sdks,privates
reports=no

[MESSAGES CONTROL]
# For all codes, run 'pylint --list-msgs' or go to 'https://pylint.readthedocs.io/en/latest/reference_guide/features.html'
#
# locally-disabled:
# Warning locally suppressed using disable-msg
#
# cyclic-import:
# because of https://github.com/PyCQA/pylint/issues/850
#
# too-many-arguments:
# Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
#
# useless-object-inheritance:
# Due to some classes inherits from __builtin__.object(), can be safely removed from bases in python3
#
disable=missing-docstring,
locally-disabled,
fixme,
cyclic-import,
too-many-arguments,
invalid-name,
duplicate-code,
useless-object-inheritance
# locally-disabled: Warning locally suppressed using disable-msg
# cyclic-import: Because of https://github.com/PyCQA/pylint/issues/850
# too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
# import-outside-toplevel: Lazy import to improve performance
disable=
missing-docstring,
locally-disabled,
fixme,
cyclic-import,
too-many-arguments,
invalid-name,
duplicate-code,
import-outside-toplevel

[TYPECHECK]
# For Azure CLI extensions, we ignore some import errors as they'll be available in the environment of the CLI
Expand Down

0 comments on commit bad8f3b

Please sign in to comment.