Skip to content

Commit

Permalink
Install ruff formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasMarwitzQC committed Nov 6, 2023
1 parent ce53708 commit 5c40e29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
14 changes: 3 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@ repos:
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/Quantco/pre-commit-mirrors-black
rev: 23.7.0
hooks:
- id: black-conda
args:
- --safe
- --target-version=py38
- repo: https://github.com/Quantco/pre-commit-mirrors-isort
rev: 5.12.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: isort-conda
additional_dependencies: [-c, conda-forge, toml=0.10.2]
- id: ruff-format
- repo: https://github.com/Quantco/pre-commit-mirrors-mypy
rev: "1.5.1"
hooks:
Expand Down
15 changes: 4 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,11 @@ include = ["minimalkv"]
[tool.setuptools.package-data]
minimalkv = ["py.typed"]

[tool.black]
exclude = '''
/(
\.eggs
| \.git
| \.venv
| build
| dist
)/
'''

[tool.ruff]
line-length = 88
target-version = "py310"

[tool.ruff.lint]
ignore = ["E203", "E266", "E501", "C901", "D104", "D100"]
select = ["B", "C", "E", "F", "W", "B9", "D"]

Expand All @@ -61,6 +51,9 @@ select = ["B", "C", "E", "F", "W", "B9", "D"]
[tool.ruff.pydocstyle]
convention = "numpy"

[tool.ruff.format]
quote-style = "double"

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
Expand Down

0 comments on commit 5c40e29

Please sign in to comment.