Skip to content

Commit

Permalink
Add missing future annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Jan 8, 2025
1 parent 6ce36df commit 4df44ae
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 38 deletions.
5 changes: 1 addition & 4 deletions janus_core/cli/descriptors.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# ruff: noqa: I002, FA100
"""Set up MLIP descriptors commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from pathlib import Path
from typing import Annotated
Expand Down
5 changes: 1 addition & 4 deletions janus_core/cli/eos.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# ruff: noqa: I002, FA100
"""Set up eos commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from pathlib import Path
from typing import Annotated, get_args
Expand Down
5 changes: 1 addition & 4 deletions janus_core/cli/geomopt.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# ruff: noqa: I002, FA100
"""Set up geomopt commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from pathlib import Path
from typing import Annotated, Any
Expand Down
7 changes: 2 additions & 5 deletions janus_core/cli/janus.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# ruff: noqa: I002, FA100
"""Set up commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from typing import Annotated

Expand Down Expand Up @@ -39,7 +36,7 @@ def print_version(
version: Annotated[
bool, Option("--version", help="Print janus version and exit.")
] = None,
) -> False:
) -> None:
"""
Print current janus-core version and exit.
Expand Down
5 changes: 1 addition & 4 deletions janus_core/cli/md.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# ruff: noqa: I002, FA100
"""Set up md commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from pathlib import Path
from typing import Annotated, get_args
Expand Down
5 changes: 1 addition & 4 deletions janus_core/cli/phonons.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# ruff: noqa: I002, FA100
"""Set up phonons commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from pathlib import Path
from typing import Annotated
Expand Down
5 changes: 1 addition & 4 deletions janus_core/cli/preprocess.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# noqa: I002, FA102
"""Set up MLIP preprocessing commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from pathlib import Path
from typing import Annotated
Expand Down
5 changes: 1 addition & 4 deletions janus_core/cli/singlepoint.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# ruff: noqa: I002, FA100
"""Set up singlepoint commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from pathlib import Path
from typing import Annotated
Expand Down
5 changes: 1 addition & 4 deletions janus_core/cli/train.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# noqa: I002, FA102
"""Set up MLIP training commandline interface."""

# Issues with future annotations and typer
# c.f. https://github.com/maxb2/typer-config/issues/295
# from __future__ import annotations
from __future__ import annotations

from pathlib import Path
from typing import Annotated
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies = [
"torch<=2.2,>=2.1",
"torch-dftd==0.4.0",
"typer<1.0.0,>=0.12.5",
"typer-config<2.0.0,>=1.4.0",
"typer-config<2.0.0,>=1.4.2",
]

[project.optional-dependencies]
Expand Down

0 comments on commit 4df44ae

Please sign in to comment.