Skip to content

Commit

Permalink
Bunch of small changes, nothing special.
Browse files Browse the repository at this point in the history
  • Loading branch information
atropos112 committed Dec 24, 2024
1 parent 0e85c7f commit ea66840
Show file tree
Hide file tree
Showing 7 changed files with 785 additions and 560 deletions.
8 changes: 0 additions & 8 deletions .copier-answers.yml

This file was deleted.

1 change: 1 addition & 0 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
lib,
config,
...

}: {
pre-commit = {
hooks = {
Expand Down
1,322 changes: 772 additions & 550 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ packages = [{ include = "atro_core", from = "src" }]
python = "^3.11"
pydantic = "^2.7.1"
rope = "^1.13.0"
ipython = "^8.31.0"

[tool.poetry.group.dev.dependencies]
types-pyyaml = "^6.0.12.20240311"
Expand Down
1 change: 0 additions & 1 deletion src/atro_core/args/input_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

T = TypeVar("T")


class InputArgs(BaseModel):
"""InputArgs is a model that represents the input arguments of an application. After it is initialized the parse_args method can be called to parse the arguments and return them as a dictionary.
Expand Down
11 changes: 10 additions & 1 deletion tests/args/parse_variety_of_types_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,16 @@ def test_basic_via_cli():
input_args.add_arg(Arg(name="some_basic3", arg_type=str, help="", required=True))

# Mock cli input args
cli_input_args = ["--some_basic", "1", "--some_basic1", " 2 ", "--some_basic2", " true ", "--some_basic3", "hello"]
cli_input_args = [
"--some_basic",
"1",
"--some_basic1",
" 2 ",
"--some_basic2",
" true ",
"--some_basic3",
"hello",
]

# Create model
model = input_args.get_dict(cli_input_args=cli_input_args)
Expand Down
1 change: 1 addition & 0 deletions tests/args/pydantic_class_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from atro_core.args import Arg, InputArgs



def test_populate_pydantic_class():
# Setup
input_args = InputArgs(prefix="ATRO_TEST")
Expand Down

0 comments on commit ea66840

Please sign in to comment.