Skip to content

Commit

Permalink
Issue #78: Added ruff configuration to check docstring style
Browse files Browse the repository at this point in the history
  • Loading branch information
johnowagon committed Dec 11, 2023
1 parent 1692bc2 commit bad876d
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 2 deletions.
39 changes: 38 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,41 @@
]

[project.scripts]
finish_install = "bsk_rl.finish_install:pck_install"
finish_install = "bsk_rl.finish_install:pck_install"

[tool.ruff]
exclude = [
".txt",
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"__pycache__",
"_build",
"buck-out",
"build",
"docs",
"dist",
"node_modules",
"venv",
]

select = [
"D205", # Blank line after summary
"D103", # Public function needs docstring
"D101", # Class needs docstring
"D102", # Method needs docstring
"D417", # Document all arguments
"D419", # Docstring is empty
]
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class UniformNadirFeature(EnvironmentFeatures):
"""Defines a nadir target center at the center of the planet."""

def __init__(self, value_per_second: float = 1.0) -> None:
""""
"""
Args:
value_per_second: Amount of reward per second imaging nadir.
"""
Expand Down

0 comments on commit bad876d

Please sign in to comment.