Skip to content

Commit bf1c6b8

Browse files
committed
Formatting
1 parent c86efb3 commit bf1c6b8

File tree

8 files changed

+9
-13
lines changed

8 files changed

+9
-13
lines changed

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ dependencies:
1010
- tabulate
1111
- xarray
1212
# Dev Dependencies
13+
- isort
1314
- mkdocs
1415
- mkdocs-autorefs
1516
- mkdocs-material

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ dev = [
6868
# Development tools
6969
"build",
7070
"hatch",
71+
"isort",
7172
"pytest",
7273
"pytest-cov",
7374
"ruff",

tests/test_linter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from xrlint.config import Config, ConfigObject
1111
from xrlint.constants import CORE_PLUGIN_NAME, DATASET_ROOT_NAME
1212
from xrlint.linter import Linter, new_linter
13-
from xrlint.node import AttrNode, AttrsNode, DatasetNode, VariableNode, DataTreeNode
13+
from xrlint.node import AttrNode, AttrsNode, DatasetNode, DataTreeNode, VariableNode
1414
from xrlint.plugin import new_plugin
1515
from xrlint.processor import ProcessorOp
1616
from xrlint.result import Message, Result

xrlint/_linter/apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This software is distributed under the terms and conditions of the
33
# MIT license (https://mit-license.org/).
44

5-
from xrlint.node import AttrNode, AttrsNode, DataTreeNode, DatasetNode, VariableNode
5+
from xrlint.node import AttrNode, AttrsNode, DatasetNode, DataTreeNode, VariableNode
66
from xrlint.rule import RuleConfig, RuleExit, RuleOp
77

88
from ..constants import DATASET_ROOT_NAME, DATATREE_ROOT_NAME

xrlint/formatters/html.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@
55
import html
66
from collections.abc import Iterable
77

8-
from xrlint.constants import (
9-
SEVERITY_CODE_TO_COLOR,
10-
SEVERITY_CODE_TO_NAME,
11-
)
8+
from xrlint.constants import SEVERITY_CODE_TO_COLOR, SEVERITY_CODE_TO_NAME
129
from xrlint.formatter import FormatterContext, FormatterOp
1310
from xrlint.formatters import registry
1411
from xrlint.result import Message, Result, get_rules_meta_for_results

xrlint/formatters/simple.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@
66

77
from tabulate import tabulate
88

9-
from xrlint.constants import (
10-
SEVERITY_CODE_TO_COLOR,
11-
SEVERITY_CODE_TO_NAME,
12-
)
9+
from xrlint.constants import SEVERITY_CODE_TO_COLOR, SEVERITY_CODE_TO_NAME
1310
from xrlint.formatter import FormatterContext, FormatterOp
1411
from xrlint.formatters import registry
1512
from xrlint.result import Message, Result

xrlint/result.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ def warning_count(self) -> int:
113113
@cached_property
114114
def error_count(self) -> int:
115115
"""The number of errors. This includes fixable errors
116-
and fatal errors.
117-
"""
116+
and fatal errors.
117+
"""
118118
return sum(1 if m.severity == SEVERITY_ERROR else 0 for m in self.messages)
119119

120120
@cached_property

xrlint/rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import xarray as xr
1111

1212
from xrlint.constants import SEVERITY_ENUM, SEVERITY_ENUM_TEXT
13-
from xrlint.node import AttrNode, AttrsNode, DataTreeNode, DatasetNode, VariableNode
13+
from xrlint.node import AttrNode, AttrsNode, DatasetNode, DataTreeNode, VariableNode
1414
from xrlint.operation import Operation, OperationMeta
1515
from xrlint.result import Suggestion
1616
from xrlint.util.constructible import ValueConstructible

0 commit comments

Comments
 (0)