Skip to content

Commit

Permalink
Remove if from scripts (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
niosus authored Feb 13, 2022
1 parent b168b03 commit 3962ddf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
11 changes: 3 additions & 8 deletions homework_checker/check_homework.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,9 @@
import logging
from pathlib import Path

if __name__ == "__main__":
from core.checker import Checker
from core.md_writer import MdWriter
from core.tools import expand_if_needed
else:
from homework_checker.core.checker import Checker
from homework_checker.core.md_writer import MdWriter
from homework_checker.core.tools import expand_if_needed
from homework_checker.core.checker import Checker
from homework_checker.core.md_writer import MdWriter
from homework_checker.core.tools import expand_if_needed

logging.basicConfig()
log = logging.getLogger("GHC")
Expand Down
5 changes: 1 addition & 4 deletions homework_checker/print_repo_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
"""
import sys

if __name__ == "__main__":
from core.tools import parse_git_url
else:
from homework_checker.core.tools import parse_git_url
from homework_checker.core.tools import parse_git_url

WIKI_REPO_MASK = "git@{domain}:{user}/{project}.wiki.git"
REPO_MASK = "git@{domain}:{user}/{project}.git"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools import setup
from setuptools.command.install import install

VERSION_STRING = "1.0.0"
VERSION_STRING = "1.0.1"

PACKAGE_NAME = "homework_checker"

Expand Down

0 comments on commit 3962ddf

Please sign in to comment.