Skip to content

Commit ec4bb3d

Browse files
committed
add import shapely at the top and adjust isort setting thus pre-commit can consider it as an exception
1 parent edb61e2 commit ec4bb3d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ repos:
2828
rev: 5.12.0
2929
hooks:
3030
- id: isort
31+
args: ["--honor-noqa"]
3132

3233
# =======================
3334
# Python linting

pcmdi_metrics/variability_mode/lib/plot_map.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import faulthandler
22
import sys
33

4-
# import cartopy
54
import cartopy.crs as ccrs
65
import matplotlib.path as mpath
76
import matplotlib.pyplot as plt

pcmdi_metrics/variability_mode/variability_modes_driver.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@
4646
for advertising or product endorsement purposes.
4747
"""
4848

49-
from __future__ import print_function
50-
49+
import shapely # noqa
5150
import glob
5251
import json
5352
import os

0 commit comments

Comments
 (0)