Skip to content

Commit

Permalink
adds ruff.toml file for consistent formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
birkin committed Dec 21, 2024
1 parent bd05565 commit 1cc0d8f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
22 changes: 22 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## settings ##
line-length = 125
indent-width = 4
target-version = "py38"

[format]
docstring-code-format = false
indent-style = "space"
line-ending = "auto"
quote-style = "single"

[lint.flake8-quotes]
avoid-escape = true

[lint.isort]
case-sensitive = true

[lint.pycodestyle]
max-line-length = 125

[lint.pydocstyle]
convention = "google"
13 changes: 0 additions & 13 deletions self_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,6 @@
## ------------------------------------------------------------------


# def validate_project_path(project_path: str) -> None:
# """
# Validates that the provided project path exists.
# Exits the script if the path is invalid.
# """
# log.debug('starting validate_project_path()')
# if not Path(project_path).exists():
# message = f'Error: The provided project_path ``{project_path}`` does not exist.'
# log.exception(message)
# raise Exception(message)
# return


def validate_project_path(project_path: Path) -> None:
"""
Validates that the provided project path exists.
Expand Down

0 comments on commit 1cc0d8f

Please sign in to comment.