Skip to content
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
0f70b03
ignore types folder
tlambert03 Apr 23, 2025
459a999
Add scyjava-stubs CLI and dynamic import functionality
tlambert03 Apr 23, 2025
a8b2da7
remove import
tlambert03 Apr 23, 2025
686739b
add test
tlambert03 Apr 23, 2025
7fe31af
add comment to clarify stubgen command execution in test
tlambert03 Apr 23, 2025
afcc7a7
refactor: clean up jpype imports in stubgen test and main module
tlambert03 Apr 23, 2025
a5cacc8
remove unused jpype import from _genstubs.py
tlambert03 Apr 23, 2025
ab1bc2d
fix: add future annotations import to _cli.py
tlambert03 Apr 23, 2025
11649fa
refactor: enhance dynamic_import function to accept base_prefix and i…
tlambert03 Apr 23, 2025
2cb4836
refactor: rename dynamic_import to setup_java_imports and update usag…
tlambert03 Apr 23, 2025
71f761e
reword
tlambert03 Apr 23, 2025
65cc471
feat: add Hatchling build hook for generating Java stubs
tlambert03 Apr 25, 2025
6e4181e
wip
tlambert03 Apr 25, 2025
6e92b13
fix inclusion
tlambert03 Apr 25, 2025
0d231cc
add docs
tlambert03 Apr 25, 2025
79524b0
setuptools plugin stub
tlambert03 Apr 25, 2025
9bdba53
Merge branch 'main' into stubs
tlambert03 Apr 30, 2025
51937b5
remove repr test
tlambert03 May 1, 2025
192be35
skip in jep
tlambert03 May 1, 2025
e714abb
remove setuptools plugin
tlambert03 May 1, 2025
e7bc894
Merge branch 'main' into stubs
tlambert03 Aug 20, 2025
a18d9d9
remove hatch plugin
tlambert03 Aug 22, 2025
b53e795
newlines
tlambert03 Aug 22, 2025
ed0add6
update docs
tlambert03 Aug 22, 2025
4f54611
Rewrite type references in stubs to include prefix
ctrueden Dec 10, 2025
6783f57
Fix typo: _get_ouput_dir -> _get_output_dir
ctrueden Dec 10, 2025
fb8c3ef
Fix printf-style string syntax typo
ctrueden Dec 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix typo: _get_ouput_dir -> _get_output_dir
  • Loading branch information
ctrueden committed Dec 10, 2025
commit 6783f57e364da33f2cfae46627e1de07a73c2ecc
6 changes: 3 additions & 3 deletions src/scyjava/_stubs/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

The only interesting additional things going on here is the choice of *where* the stubs
go by default. When using the CLI, they land in `scyjava.types` by default; see the
`_get_ouput_dir` helper function for details on how the output directory is resolved
`_get_output_dir` helper function for details on how the output directory is resolved
from the CLI arguments.
"""

Expand Down Expand Up @@ -98,7 +98,7 @@ def main() -> None:
sys.exit(1)

args = parser.parse_args()
output_dir = _get_ouput_dir(args.output_dir, args.output_python_path)
output_dir = _get_output_dir(args.output_dir, args.output_python_path)
if not output_dir.exists():
output_dir.mkdir(parents=True, exist_ok=True)

Expand Down Expand Up @@ -132,7 +132,7 @@ def _derive_python_prefix(output_dir: str | None) -> str:
return "scyjava.types"


def _get_ouput_dir(output_dir: str | None, python_path: str | None) -> Path:
def _get_output_dir(output_dir: str | None, python_path: str | None) -> Path:
if out_dir := output_dir:
return Path(out_dir)
if pp := python_path:
Expand Down