Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
forman committed Feb 13, 2025
1 parent c86efb3 commit bf1c6b8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 13 deletions.
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- tabulate
- xarray
# Dev Dependencies
- isort
- mkdocs
- mkdocs-autorefs
- mkdocs-material
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ dev = [
# Development tools
"build",
"hatch",
"isort",
"pytest",
"pytest-cov",
"ruff",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from xrlint.config import Config, ConfigObject
from xrlint.constants import CORE_PLUGIN_NAME, DATASET_ROOT_NAME
from xrlint.linter import Linter, new_linter
from xrlint.node import AttrNode, AttrsNode, DatasetNode, VariableNode, DataTreeNode
from xrlint.node import AttrNode, AttrsNode, DatasetNode, DataTreeNode, VariableNode
from xrlint.plugin import new_plugin
from xrlint.processor import ProcessorOp
from xrlint.result import Message, Result
Expand Down
2 changes: 1 addition & 1 deletion xrlint/_linter/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This software is distributed under the terms and conditions of the
# MIT license (https://mit-license.org/).

from xrlint.node import AttrNode, AttrsNode, DataTreeNode, DatasetNode, VariableNode
from xrlint.node import AttrNode, AttrsNode, DatasetNode, DataTreeNode, VariableNode
from xrlint.rule import RuleConfig, RuleExit, RuleOp

from ..constants import DATASET_ROOT_NAME, DATATREE_ROOT_NAME
Expand Down
5 changes: 1 addition & 4 deletions xrlint/formatters/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
import html
from collections.abc import Iterable

from xrlint.constants import (
SEVERITY_CODE_TO_COLOR,
SEVERITY_CODE_TO_NAME,
)
from xrlint.constants import SEVERITY_CODE_TO_COLOR, SEVERITY_CODE_TO_NAME
from xrlint.formatter import FormatterContext, FormatterOp
from xrlint.formatters import registry
from xrlint.result import Message, Result, get_rules_meta_for_results
Expand Down
5 changes: 1 addition & 4 deletions xrlint/formatters/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@

from tabulate import tabulate

from xrlint.constants import (
SEVERITY_CODE_TO_COLOR,
SEVERITY_CODE_TO_NAME,
)
from xrlint.constants import SEVERITY_CODE_TO_COLOR, SEVERITY_CODE_TO_NAME
from xrlint.formatter import FormatterContext, FormatterOp
from xrlint.formatters import registry
from xrlint.result import Message, Result
Expand Down
4 changes: 2 additions & 2 deletions xrlint/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def warning_count(self) -> int:
@cached_property
def error_count(self) -> int:
"""The number of errors. This includes fixable errors
and fatal errors.
"""
and fatal errors.
"""
return sum(1 if m.severity == SEVERITY_ERROR else 0 for m in self.messages)

@cached_property
Expand Down
2 changes: 1 addition & 1 deletion xrlint/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import xarray as xr

from xrlint.constants import SEVERITY_ENUM, SEVERITY_ENUM_TEXT
from xrlint.node import AttrNode, AttrsNode, DataTreeNode, DatasetNode, VariableNode
from xrlint.node import AttrNode, AttrsNode, DatasetNode, DataTreeNode, VariableNode
from xrlint.operation import Operation, OperationMeta
from xrlint.result import Suggestion
from xrlint.util.constructible import ValueConstructible
Expand Down

0 comments on commit bf1c6b8

Please sign in to comment.