Skip to content

Commit

Permalink
sort imports
Browse files Browse the repository at this point in the history
  • Loading branch information
codingjoe committed Aug 9, 2024
1 parent 0491fab commit 378f306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion relint/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import yaml


from .exceptions import ConfigError

Test = collections.namedtuple(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pytest

from relint.__main__ import main
from relint.config import Test
from relint.exceptions import ConfigError
from relint.parse import (
lint_file,
Expand All @@ -13,7 +14,6 @@
parse_line_numbers,
split_diff_content_by_filename,
)
from relint.config import Test


class TestParseGitDiff:
Expand Down Expand Up @@ -210,7 +210,7 @@ def test_cc_linting_rule(tmpdir, fixture_dir):
r".{120,}(?<!\s)(?=\s|$)|.{120,}(?<=\s)(?=\s)"
),
hint="There should be no line longer than 120 characters in a line.",
file_pattern=regex.compile(".*\.(cpp|h)"),
file_pattern=regex.compile(r".*\.(cpp|h)"),
error=True,
)
],
Expand Down

0 comments on commit 378f306

Please sign in to comment.