Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rorybyrne/anot
Extract annotations from source-code comments.
https://github.com/rorybyrne/anot
Last synced: 4 days ago
JSON representation
Extract annotations from source-code comments.
- Host: GitHub
- URL: https://github.com/rorybyrne/anot
- Owner: rorybyrne
- Created: 2024-09-09T12:14:19.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-02T15:41:19.000Z (5 days ago)
- Last Synced: 2025-01-02T16:53:50.426Z (5 days ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# anot
Extract annotations from source-code comments.# Usage
```python
# file.pyclass Something(Experiment):
# @note: this experiment will be re-written later
def run(self):
...x = 5 # @hypothesis: 5 is better than 4
...
``````bash
$ anot file.py --treesitter --tags hypothesis,note,todo --yamlannotations:
- kind: note
content: this experiment will be re-written later
context:
node_type: class_definition
parent_type: module
associated_name: Something
line_range: [2, 7]
- kind: hypothesis
content: 5 is better than 4
context:
node_type: assignment
parent_type: function_definition
associated_name: run
line_number: 5
variable_name: x
```