Skip to content

Commit

Permalink
Merge pull request #98 from gboeing/update
Browse files Browse the repository at this point in the history
replace nbqa with ruff
  • Loading branch information
gboeing authored Dec 19, 2024
2 parents e6a8efa + 1e518b3 commit 34e2f8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
15 changes: 5 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,13 @@ repos:
args: [--branch, main]
- id: trailing-whitespace

- repo: https://github.com/nbQA-dev/nbQA
rev: "1.9.1"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.8.2"
hooks:
- id: nbqa-isort
additional_dependencies: [isort]
args: [--line-length=100, --sl]
- id: nbqa-black
additional_dependencies: [black]
- id: ruff
args: [--fix, --line-length=100, --extend-select=E, --extend-select=F, --extend-select=I]
- id: ruff-format
args: [--line-length=100]
- id: nbqa-flake8
additional_dependencies: [flake8]
args: [--max-line-length=100]

- repo: local
hooks:
Expand Down
4 changes: 1 addition & 3 deletions notebooks/13-isolines-isochrones.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"import matplotlib.pyplot as plt\n",
"import networkx as nx\n",
"import osmnx as ox\n",
"from shapely.geometry import LineString\n",
"from shapely.geometry import Point\n",
"from shapely.geometry import Polygon\n",
"from shapely.geometry import LineString, Point, Polygon\n",
"\n",
"ox.__version__"
]
Expand Down

0 comments on commit 34e2f8e

Please sign in to comment.