Skip to content

Commit

Permalink
build: ts 0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Aug 28, 2024
1 parent 294f9af commit 083aefc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,15 @@ python-import ~
- ERROR python-import cli (0.1.0+41.g9513418.dirty) and nvim plugin version (0.1.0+42.g9f74e1d.dirty) mismatch.
```

## 💻 `python-import` CLI

The `python-import` CLI is a simple Python script that counts the number of import statements used in the project.

```
$ python-import count /path/to/project np
00004: import numpy as np
```

## TODO
- [ ] Search class/function/variable definitions from project
- [ ] Add more tests
Expand Down
5 changes: 2 additions & 3 deletions deps/requirements.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
typer>=0.12.4
tree-sitter>=0.22.0
tree-sitter-python; sys_platform != "darwin" or platform_machine != 'arm64'
tree-sitter-python @ https://github.com/kiyoon/tree-sitter-python/releases/download/temp/tree_sitter_python-0.21.0-cp38-abi3-macosx_11_0_arm64.whl ; sys_platform == "darwin" and platform_machine == 'arm64'
tree-sitter>=0.23.0
tree-sitter-python>=0.23.0

0 comments on commit 083aefc

Please sign in to comment.