Skip to content

Commit

Permalink
style: dropped black for ruff-format; upgrade nbqa
Browse files Browse the repository at this point in the history
  • Loading branch information
martibosch committed Dec 4, 2023
1 parent c5cd854 commit b7fbc6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 3 additions & 7 deletions {{ cookiecutter.repo_name }}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,10 @@ repos:
hooks:
- id: pyupgrade

- repo: https://github.com/psf/black
rev: 22.6.0
hooks:
- id: black

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.225
rev: v0.1.6
hooks:
- id: ruff-format
- id: ruff

- repo: https://github.com/kynan/nbstripout
Expand All @@ -55,7 +51,7 @@ repos:
args: ["--keep-output"]

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.6.1
rev: 1.7.0
hooks:
- id: nbqa-black
- id: nbqa-ruff
Expand Down
3 changes: 0 additions & 3 deletions {{ cookiecutter.repo_name }}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ Repository = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecut
[tool.setuptools.packages.find]
include = ["{{ cookiecutter.python_module_name }}", "{{ cookiecutter.python_module_name }}.*"]

[tool.black]
line-length = 88

[tool.ruff]
line-length = 88
select = ["D", "E", "F", "I"]
Expand Down

0 comments on commit b7fbc6f

Please sign in to comment.