Skip to content

Commit

Permalink
ruff format
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Nov 10, 2023
1 parent fa69fdd commit 32e75e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Alpha stage:

- pre-commit hooks
- various linters
- black + isort
- ruff
- version with setuptools-scm-git
- copyright + Apache v2.0 license
- GitHub Actions
Expand Down
5 changes: 1 addition & 4 deletions {{cookiecutter.project_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ repos:
- id: check-added-large-files
- id: debug-statements
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 23.10.1
hooks:
- id: black
- repo: https://github.com/keewis/blackdoc
rev: v0.3.9
hooks:
Expand All @@ -24,6 +20,7 @@ repos:
hooks:
- id: ruff
args: [--fix, --show-fixes]
- id: ruff-format
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
Expand Down
8 changes: 6 additions & 2 deletions {{cookiecutter.project_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ ignore = [
# pydocstyle: Missing Docstrings
"D1"
]
# Black line length is 88, but black does not format comments.
line-length = 110
# Same as Black.
indent-width = 4
line-length = 88
select = [
# pyflakes
"F",
Expand All @@ -44,6 +45,9 @@ select = [
"D"
]

[tool.ruff.lint.pycodestyle]
max-line-length = 110

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

Expand Down

0 comments on commit 32e75e0

Please sign in to comment.