Skip to content

Commit

Permalink
make black 19 happy for stickler
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Sep 21, 2020
1 parent 165862f commit a5d6b66
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion pyproj/crs/_cf1x8.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def _rotated_latitude_longitude(cf_params):
}

_GEOGRAPHIC_GRID_MAPPING_NAME_MAP = {
"rotated_latitude_longitude": _rotated_latitude_longitude,
"rotated_latitude_longitude": _rotated_latitude_longitude
}


Expand Down
6 changes: 1 addition & 5 deletions pyproj/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@ def set_ca_bundle_path(ca_bundle_path: Union[Path, str, bool, None] = None) -> N
or an empty string then it will default to the system settings or environment
variables.
"""
env_var_names = (
"PROJ_CURL_CA_BUNDLE",
"CURL_CA_BUNDLE",
"SSL_CERT_FILE",
)
env_var_names = ("PROJ_CURL_CA_BUNDLE", "CURL_CA_BUNDLE", "SSL_CERT_FILE")
if ca_bundle_path is False:
# need to reset CA Bundle path to use system settings
# or environment variables because it
Expand Down
5 changes: 1 addition & 4 deletions pyproj/proj.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ class Proj(Transformer):
"""

def __init__(
self,
projparams: Any = None,
preserve_units: bool = True,
**kwargs,
self, projparams: Any = None, preserve_units: bool = True, **kwargs
) -> None:
"""
A Proj class instance is initialized with proj map projection
Expand Down
5 changes: 1 addition & 4 deletions pyproj/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ def _bbox_from_geom(geom: Dict[str, Any]) -> Optional[BBox]:


def _filter_bbox(
feature: Dict[str, Any],
bbox: BBox,
spatial_test: str,
include_world_coverage: bool,
feature: Dict[str, Any], bbox: BBox, spatial_test: str, include_world_coverage: bool
) -> bool:
"""
Filter by the bounding box. Designed to use with 'filter'
Expand Down
5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,7 @@ def get_proj_libdirs(proj_dir: Path) -> List[str]:
proj_libdir = os.environ.get("PROJ_LIBDIR")
libdirs = []
if proj_libdir is None:
libdir_search_paths = (
proj_dir / "lib",
proj_dir / "lib64",
)
libdir_search_paths = (proj_dir / "lib", proj_dir / "lib64")
for libdir_search_path in libdir_search_paths:
if libdir_search_path.exists():
libdirs.append(str(libdir_search_path))
Expand Down

0 comments on commit a5d6b66

Please sign in to comment.