summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authordanieleades <33452915+danieleades@users.noreply.github.com>2023-02-19 17:14:00 +0000
committerGitHub <noreply@github.com>2023-02-19 18:14:00 +0100
commit5fcf01b9a43a097c4f579486023d1279b2b88619 (patch)
tree7e1f3e868fb56d5e9d8911989fec7215f7d1b8ff /.pre-commit-config.yaml
parentd49da725e84bfcf52200ca8a48699ca5761c918a (diff)
downloadnetworkx-5fcf01b9a43a097c4f579486023d1279b2b88619.tar.gz
Lint using Ruff (#6371)
* lint and fix using ruff * add flake8-pie lints * remove useless import alias * bump version * bump deps --------- Co-authored-by: daniel.eades <daniel.eades@hotmail.com>
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 13c3751f..b822734b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -28,3 +28,10 @@ repos:
- id: prettier
files: \.(html|md|yml|yaml)
args: [--prose-wrap=preserve]
+
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
+ rev: v0.0.247
+ hooks:
+ - id: ruff
+ args:
+ - --fix