Skip to content

Commit

Permalink
added four lints for opensearchpy/
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Cohen <[email protected]>
  • Loading branch information
macohen committed Jan 17, 2024
1 parent 2265ad3 commit d9c0874
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# under the License.


from typing import Any
from typing import Any, List

import nox

Expand Down Expand Up @@ -128,9 +128,10 @@ def lint_per_folder(session: Any) -> None:
:param session: the current nox session
"""

# TODO determine how to separate generated code from generator code for linting
exclude_path_from_linting = ["opensearchpy/"]
# any paths that should not be run through pylint
exclude_path_from_linting: List[str] = []

# all paths not referenced in override_enable will run these lints
default_enable = [
"line-too-long",
"invalid-name",
Expand All @@ -149,7 +150,13 @@ def lint_per_folder(session: Any) -> None:
"missing-param-doc",
"differing-param-doc",
# "missing-function-docstring", test names usually are, self describing
]
],
"opensearchpy/": [
"line-too-long",
"invalid-name",
"pointless-statement",
"unspecified-encoding",
],
}

for source_file in SOURCE_FILES:
Expand Down

0 comments on commit d9c0874

Please sign in to comment.