Skip to content

Commit

Permalink
Formatters
Browse files Browse the repository at this point in the history
  • Loading branch information
gbg141 committed Jun 7, 2024
1 parent 6ecdc28 commit a091a44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions format_and_lint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
#!/bin/sh

# Run ruff to check for issues and fix them
ruff check . --fix

# Run docformatter to reformat docstrings and comments
docformatter --in-place --recursive --wrap-summaries 79 --wrap-descriptions 79 .

# Run black to format the code
black .
ruff check . --fix
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ extend-exclude = ["test", "tutorials", "notebooks"]
line-length = 79 # PEP 8 standard for maximum line length

[tool.ruff.format]
docstring-code-format = false
docstring-code-format = true

[tool.ruff.lint]
select = [
Expand Down Expand Up @@ -129,7 +129,7 @@ ignore = [
]

[tool.ruff.lint.pydocstyle]
convention = "google"
convention = "numpy"

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403"]
Expand Down

0 comments on commit a091a44

Please sign in to comment.