-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce line length in linter and format code (#8)
- Loading branch information
1 parent
42b41f7
commit 44e71f7
Showing
14 changed files
with
363 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
import argparse | ||
from napytau.cli.cli_arguments import CLIArguments | ||
|
||
|
||
def parse_cli_arguments() -> CLIArguments: | ||
parser = argparse.ArgumentParser(description="Mockup for NaPyTau") | ||
parser.add_argument("--headless", action="store_true", help="Run the application without GUI") | ||
parser.add_argument("--filename", type=str, help="File to ingest (only for mockup, not used in real application)") | ||
parser.add_argument( | ||
"--headless", action="store_true", help="Run the application without GUI" | ||
) | ||
parser.add_argument( | ||
"--filename", | ||
type=str, | ||
help="File to ingest (only for mockup, not used in real application)", | ||
) | ||
|
||
return CLIArguments(parser.parse_args()) | ||
return CLIArguments(parser.parse_args()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
from napytau.cli.cli_arguments import CLIArguments | ||
from napytau.ingest.ingest_mockup import ingest_file | ||
|
||
|
||
def init(cli_arguments: CLIArguments): | ||
print("running headless mockup") | ||
if cli_arguments.has_filename(): | ||
print(f"{cli_arguments.get_filename()}:\n{ingest_file(cli_arguments.get_filename())}") | ||
print( | ||
f"{cli_arguments.get_filename()}:\n{ingest_file(cli_arguments.get_filename())}" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ def coalesce(*args): | |
for arg in args: | ||
if arg is not None: | ||
return arg | ||
return None | ||
return None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.