vil02 / vil02/string_to_code_proj
Test the output of `to_lua` with `stylua`
Open
Beginner friendly
Nobody has claimed this yet.
good first issue
- Dominant language
- Python
- Stars
- 2
- Forks
- 4
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 10
Description
#391 added the to_lua.
It is worth testing if the output is properly formatted with stylua.
What needs to be done:
- modify the function
run_lua_code:
https://github.com/vil02/string_to_code_proj/blob/cb5d084ddfc4cfb0a01fa85ef06d46a32c332907/tests/setup_lua.py#L24
to runstylua --checkon the temporary source file (i.e.tmp_folder / source_filename), - install
styluainsetup_for_lua.sh.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read tests/setup_lua.py, focusing on run_lua_code and the temporary source file at tmp_folder / source_filename. Update the Lua setup script at system_setup_scripts/setup_for_lua.sh to install stylua, then run the Lua tests and verify that stylua --check validates the generated output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, python
- Domain
- testing-qa, tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100