Skip to content

Commit

Permalink
dts: add docstring checker
Browse files Browse the repository at this point in the history
Python docstrings are the in-code way to document the code. The
docstring checker of choice is pydocstyle which we're executing from
Pylama, but the current latest versions are not complatible due to [0],
so pin the pydocstyle version to the latest working version.

[0] klen/pylama#232

Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
jlinkes authored and ovsrobot committed Nov 6, 2023
1 parent 1a6c8d3 commit 3b1d823
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 6 additions & 6 deletions dts/poetry.lock

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

6 changes: 5 additions & 1 deletion dts/pyproject.toml
Expand Up @@ -25,6 +25,7 @@ PyYAML = "^6.0"
types-PyYAML = "^6.0.8"
fabric = "^2.7.1"
scapy = "^2.5.0"
pydocstyle = "6.1.1"

[tool.poetry.group.dev.dependencies]
mypy = "^0.961"
Expand All @@ -39,10 +40,13 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.pylama]
linters = "mccabe,pycodestyle,pyflakes"
linters = "mccabe,pycodestyle,pydocstyle,pyflakes"
format = "pylint"
max_line_length = 88 # https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length

[tool.pylama.linter.pydocstyle]
convention = "google"

[tool.mypy]
python_version = "3.10"
enable_error_code = ["ignore-without-code"]
Expand Down

0 comments on commit 3b1d823

Please sign in to comment.