Skip to content

Commit 34e2f8e

Browse files
authored
Merge pull request #98 from gboeing/update
replace nbqa with ruff
2 parents e6a8efa + 1e518b3 commit 34e2f8e

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,13 @@ repos:
1515
args: [--branch, main]
1616
- id: trailing-whitespace
1717

18-
- repo: https://github.com/nbQA-dev/nbQA
19-
rev: "1.9.1"
18+
- repo: https://github.com/astral-sh/ruff-pre-commit
19+
rev: "v0.8.2"
2020
hooks:
21-
- id: nbqa-isort
22-
additional_dependencies: [isort]
23-
args: [--line-length=100, --sl]
24-
- id: nbqa-black
25-
additional_dependencies: [black]
21+
- id: ruff
22+
args: [--fix, --line-length=100, --extend-select=E, --extend-select=F, --extend-select=I]
23+
- id: ruff-format
2624
args: [--line-length=100]
27-
- id: nbqa-flake8
28-
additional_dependencies: [flake8]
29-
args: [--max-line-length=100]
3025

3126
- repo: local
3227
hooks:

notebooks/13-isolines-isochrones.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@
2626
"import matplotlib.pyplot as plt\n",
2727
"import networkx as nx\n",
2828
"import osmnx as ox\n",
29-
"from shapely.geometry import LineString\n",
30-
"from shapely.geometry import Point\n",
31-
"from shapely.geometry import Polygon\n",
29+
"from shapely.geometry import LineString, Point, Polygon\n",
3230
"\n",
3331
"ox.__version__"
3432
]

0 commit comments

Comments
 (0)