Skip to content

Commit

Permalink
Lint fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
amykyta3 committed Mar 12, 2023
1 parent 594f114 commit da022aa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/peakrdl/config/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
import os
import sys

from . import schema

if sys.version_info[0:2] < (3, 11):
# Prior to py3.11, tomllib is a 3rd party package
import tomli as tomllib
else:
# py3.11 and onwards, tomli was absorbed into the standard library as tomllib
import tomllib

from . import schema

class AppConfig:
def __init__(self, path: str, raw_data: Dict[str, Any]) -> None:
self.path = path
Expand Down
4 changes: 2 additions & 2 deletions src/peakrdl/config/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ class Boolean(_SimpleType):
TYPE = bool

class DateTime(_SimpleType):
TYPE = datetime.datetime
TYPE = datetime.datetime # type: ignore

class Date(_SimpleType):
TYPE = datetime.date
TYPE = datetime.date # type: ignore

class Time(_SimpleType):
TYPE = datetime.time
Expand Down
2 changes: 1 addition & 1 deletion src/peakrdl/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def is_compatible(self, path: str) -> bool:


def add_importer_arguments(self, arg_group: 'argparse._ActionsContainer') -> None:
"""
"""
Override this function to define additional command line arguments by
using the ``arg_group.add_argument()`` method.
See Python's `argparse module <https://docs.python.org/3/library/argparse.html#the-add-argument-method>`_
Expand Down
1 change: 1 addition & 0 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ this_dir="$( cd "$(dirname "$0")" ; pwd -P )"
# Initialize venv
venv_bin=$this_dir/.venv/bin
python3 -m venv $this_dir/.venv
source $venv_bin/activate

#tools
python=$venv_bin/python
Expand Down

0 comments on commit da022aa

Please sign in to comment.