chaoss / chaoss/CollectOSS

Consider replacing string parsing with ast

Open
#161 1 comment 0 reactions 0 assignees View on GitHub
tech debt
Dominant language
Python
Stars
13
Forks
17
Avg merge
6h 59m
Merged PRs (30d)
1

Description

> [!NOTE]
> Migrated from [augurlabs/augur#3504](https://github.com/augurlabs/augur/issues/3504)
> Originally opened by `@VyasGuru` on 2026-01-01

---

inspect_without_import.py currently uses basic string parsing to get the functions from start_tasks.py
This might cause problems with indenting and formatting with small things like whitespaces.

I'd suggest using Python's ast to inspect the file, as this makes it more robust and not susceptible to the parsing errors previously mentioned.

If there isn't anyone working on this already, I'd be glad to give this a go. Waiting for a maintainer to review this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.