Skip to content

Commit

Permalink
adding pylint nautobot
Browse files Browse the repository at this point in the history
  • Loading branch information
whitej6 committed Sep 28, 2023
1 parent 8131b39 commit 9a8381c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
30 changes: 24 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ toml = "*"
[tool.poetry.extras]
nautobot = ["nautobot"]

[tool.poetry.group.dev.dependencies]
pylint-nautobot = "^0.2.1"

[tool.black]
line-length = 120
target-version = ['py37']
Expand All @@ -75,9 +78,14 @@ exclude = '''

[tool.pylint.master]
# Include the pylint_django plugin to avoid spurious warnings about Django patterns
load-plugins = "pylint_django"
load-plugins="pylint_django, pylint_nautobot"
ignore = ".venv"

[tool.pylint-nautobot]
supported_nautobot_versions = [
"2"
]

[tool.pylint.basic]
# No docstrings required for private methods (Pylint default), or for test_ functions, or for inner Meta classes.
no-docstring-rgx = "^(_|test_|Meta$)"
Expand All @@ -89,7 +97,8 @@ min-similarity-lines = 6
disable = """,
line-too-long,
too-few-public-methods,
too-many-ancestors
too-many-ancestors,
nb-string-field-blank-null
"""

[tool.pylint.miscellaneous]
Expand Down

0 comments on commit 9a8381c

Please sign in to comment.