Skip to content

Commit

Permalink
WIP: ruff check --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
awdem committed Nov 18, 2024
1 parent c07703c commit 5d4dafa
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion eco_parser/__main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from eco_parser.cli import main


if __name__ == "__main__":
main()
1 change: 1 addition & 0 deletions eco_parser/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import csv
import sys

from eco_parser.parser import EcoParser


Expand Down
5 changes: 3 additions & 2 deletions eco_parser/element_parsers.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import abc

from eco_parser.core import (
NAMESPACES,
get_single_element,
get_child_text,
ParseError,
get_child_text,
get_single_element,
)


Expand Down
4 changes: 3 additions & 1 deletion eco_parser/parser.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import re

import requests
from lxml import etree
from eco_parser.core import get_single_element, ParseError

from eco_parser.core import ParseError, get_single_element
from eco_parser.element_parsers import ElementParserFactory


Expand Down
1 change: 0 additions & 1 deletion run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import sys
import unittest


if __name__ == "__main__":
dirname = os.path.dirname(os.path.abspath(__file__))
loader = unittest.TestLoader()
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os

from setuptools import setup

# allow setup.py to be run from any path
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import unittest
from eco_parser import EcoParser, ParseError

from eco_parser import EcoParser, ParseError

SCHEDULE_WITH_TABLE = (
"http://www.legislation.gov.uk/uksi/2017/1067/schedule/1/made/data.xml"
Expand Down

0 comments on commit 5d4dafa

Please sign in to comment.