Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace black with ruff in pre-commit config #2394

Merged
merged 8 commits into from
Oct 25, 2023
Merged
8 changes: 1 addition & 7 deletions .pre-commit-config.yaml
Expand Up @@ -86,7 +86,7 @@ repos:
- tomli

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.1
rev: v0.1.2
hooks:
- id: ruff
args: [--fix]
namurphy marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -102,11 +102,6 @@ repos:
types:
- python

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

- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
Expand All @@ -120,7 +115,6 @@ repos:
- id: nbqa-ruff
args: ['--select=A,ARG,B,BLE,C,C4,E,F,FLY,I002,INT,ISC,PERF,PIE,PLC,PLE,PYI,Q003,RET,RSE,SIM,TID,TRY,UP,W', '--ignore=B007,B008,B015,B018,E402,E501,E741,SIM114']
- id: nbqa-isort
- id: nbqa-black

- repo: local
hooks:
Expand Down
3 changes: 3 additions & 0 deletions CITATION.cff
Expand Up @@ -580,3 +580,6 @@ authors:
family-names: Jones
orcid: https://orcid.org/0009-0004-6699-4869
alias: E-W-Jones

- given-names: Oscar
alias: 0scvr
1 change: 1 addition & 0 deletions changelog/2394.trivial.rst
@@ -0,0 +1 @@
Replaced |black| with |ruff| in pre-commit config.