Skip to content

Commit

Permalink
fix pre-commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Aug 16, 2021
1 parent 6e0fa80 commit 4f64c80
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/compliance-checker-issue-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ assignees: ''

**Version of compliance checker running:**

**Describe the checker this affects:**
**Describe the checker this affects:**
_The ACDD, IOOS, and CF checkers are currently considered in scope for the purposes of the issue tracking on this repository. Issues with other plugins should be placed into their respective repositories._

**Attach a minimal CDL or NetCDF file which is able to reproduce the issue**
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
# args: [--max-line-length=200, "--ignore=E203,E501,W503", "--select=select=C,E,F,W,B,B950"]

- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.8.0
rev: v5.9.3
hooks:
- id: isort
additional_dependencies: [toml]
Expand All @@ -34,7 +34,7 @@ repos:
- id: seed-isort-config

- repo: https://github.com/psf/black
rev: 21.6b0
rev: 21.7b0
hooks:
- id: black
language_version: python3
Expand Down
6 changes: 2 additions & 4 deletions compliance_checker/cf/cf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4434,8 +4434,7 @@ def check_variable_features(self, ds):
# Don't bother checking if it's not a legal featureType
# if the featureType attribute doesn't exist
feature_type = getattr(ds, "featureType", "")
if (feature_type is not None and
feature_type.lower() not in feature_list):
if feature_type is not None and feature_type.lower() not in feature_list:
return []

_feature = feature_type.lower()
Expand All @@ -4446,8 +4445,7 @@ def check_variable_features(self, ds):
if variable_feature is None:
continue
feature_types_found[variable_feature].append(name)
matching_feature = TestCtx(BaseCheck.MEDIUM,
self.section_titles["9.1"])
matching_feature = TestCtx(BaseCheck.MEDIUM, self.section_titles["9.1"])
matching_feature.assert_true(
variable_feature.lower() == _feature,
"{} is not a {}, it is detected as a {}"
Expand Down
1 change: 0 additions & 1 deletion compliance_checker/cfutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -2010,7 +2010,6 @@ def guess_feature_type(nc, variable):
return "reduced-grid"



def units_convertible(units1, units2, reftimeistime=True):
"""
Return True if a Unit representing the string units1 can be converted
Expand Down

0 comments on commit 4f64c80

Please sign in to comment.