Skip to content

Commit

Permalink
refactor: explicitly import from requirement_file_checks
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys committed Dec 25, 2021
1 parent 0cd984c commit b6426e1
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: |
python -m venv .venv
source .venv/bin/activate
pip install lxml pytest
pip install lxml==4.6.3 pytest
pytest tests/unit
release:
Expand Down
10 changes: 5 additions & 5 deletions requirement_file_checks/all.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
import os
from typing import List

from cim import CimChecker
from transport_attrib import TransportAttributesChecker
from unicode_char import UnicodeChecker
from validate_xml import XMLChecker
from xml_format_checker import XmlFormatChecker
from requirement_file_checks.cim import CimChecker
from requirement_file_checks.transport_attrib import TransportAttributesChecker
from requirement_file_checks.unicode_char import UnicodeChecker
from requirement_file_checks.validate_xml import XMLChecker
from requirement_file_checks.xml_format_checker import XmlFormatChecker


def _collect_filenames(path: str) -> List[str]:
Expand Down
2 changes: 1 addition & 1 deletion requirement_file_checks/cim.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from typing import List
from xml.etree import cElementTree as ET

from base_checker import BaseChecker
from requirement_file_checks.base_checker import BaseChecker


class CimChecker(BaseChecker):
Expand Down
2 changes: 1 addition & 1 deletion requirement_file_checks/transport_attrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from typing import List
from xml.etree import cElementTree as ET

from base_checker import BaseChecker
from requirement_file_checks.base_checker import BaseChecker


class TransportAttributesChecker(BaseChecker):
Expand Down
2 changes: 1 addition & 1 deletion requirement_file_checks/unicode_char.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import re
from typing import List

from base_checker import BaseChecker
from requirement_file_checks.base_checker import BaseChecker


class UnicodeChecker(BaseChecker):
Expand Down
3 changes: 2 additions & 1 deletion requirement_file_checks/validate_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
from typing import List

import lxml
from base_checker import BaseChecker
from lxml import etree

from requirement_file_checks.base_checker import BaseChecker


class XMLChecker(BaseChecker):
def __init__(self, filenames: List[str]):
Expand Down
2 changes: 1 addition & 1 deletion requirement_file_checks/xml_format_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from xml.sax import make_parser
from xml.sax.handler import ContentHandler

from base_checker import BaseChecker
from requirement_file_checks.base_checker import BaseChecker


class XmlFormatChecker(BaseChecker):
Expand Down

0 comments on commit b6426e1

Please sign in to comment.