Generated: 2026-04-11 | Status: Active Tracking: GitHub Issues (use
scripts/create_issues.shto push)
- File:
maithili_dsl/cli.py:46 - Issue:
exec(python_code, globals())allows .dmai scripts to modify the CLI tool itself at runtime. A malicious.dmaifile can importos, delete files, or exfiltrate data. - Fix: Execute in a restricted namespace:
exec(python_code, {"__builtins__": safe_builtins}, local_ns) - Labels: security, P0
- File:
maithili_dsl/transpiler/transpile.py - Proven:
छपाउ("यह में है")→print("यह in है")— the wordमेंinside quotes gets replaced within. - Fix: Use tokenization or regex with negative lookbehind for quoted regions instead of blind
str.replace(). - Labels: bug, P0
- File:
maithili_dsl/transpiler/transpile.py - Proven:
नवयुग = ५→__init__युग = 5—नव(maps to__init__) is matched as a substring. - Fix: Use word-boundary-aware replacement (
\bकार्य\bequivalent for Devanagari). - Labels: bug, P0
- File:
LICENSE - Issue: Contains
[Your Name]placeholder and[MIT terms continued...]— not a valid MIT license. - Fix: Replace with the full MIT license text with correct copyright holder name.
- Labels: compliance, P0
- Issue: Zero test files in the entire project. No unit tests, no integration tests, no test runner configured.
- Fix: Add
tests/directory with pytest. Cover transpiler, linter, numeral conversion, and CLI. - Labels: testing, P1
- Issue: No GitHub Actions, no tox.ini, no pre-commit hooks. Code can be pushed without any automated checks.
- Fix: Add
.github/workflows/ci.ymlwith lint + test + build steps. - Labels: infra, P1
- Issue:
run_dmai_file()reads any file and execs it. No file size limits, no timeout, no sandboxing. - Fix: Add file size limits, execution timeout, and restricted builtins.
- Labels: security, P1
- Issue: No documented process for reporting security vulnerabilities.
- Fix: Add
SECURITY.mdwith responsible disclosure instructions. - Labels: compliance, P1
- Issue: Only
setup.pyexists. Modern Python tooling expectspyproject.toml. - Fix: Add
pyproject.tomlalongside or replacingsetup.py. - Labels: packaging, P1
- File:
maithili_dsl/transpiler/linter.py:65 - Issue:
var_name.isidentifier()works for Devanagari in Python 3, but the linter'sis_snake_case()regex only matches ASCII — it will always fail for Devanagari variable names. - Fix: Update naming checks to support Devanagari script identifiers.
- Labels: bug, P2
- File:
CONTRIBUTING.md - Issue: The file contains the full README.md pasted above the actual contributing guidelines.
- Fix: Remove duplicated content, keep only contributing-specific information.
- Labels: docs, P2
- Issue: No function signatures have type annotations. Makes it harder for contributors to understand the API.
- Fix: Add type hints to all public functions. Add
mypyto CI. - Labels: quality, P2
- Issue: Open source projects should have a code of conduct for community health.
- Fix: Add Contributor Covenant or similar.
- Labels: compliance, P2
- Issue:
maithili_dsl/__init__.pyandmaithili_dsl/transpiler/__init__.pyare empty — no public API is exported. - Fix: Define
__all__and export key functions for programmatic use. - Labels: packaging, P2
- Issue:
git clone https://github.com/youruser/maithili-dsl.git— should point to the real repo. - Fix: Update to
alphacrack/python-maithili-dsl. - Labels: docs, P3
- Issue: No
whilekeyword mapping exists. Onlyfor(प्रत्येक) is supported. - Fix: Add to
DEVNAGIRI_KEYWORD_MAP. - Labels: enhancement, P3
- Issue: No exception handling keywords mapped. Users can't write try/except in Maithili.
- Fix: Add
प्रयास→try,अपवाद→except,अंततः→finally. - Labels: enhancement, P3
- Issue: Listed as a future goal in README but not started.
- Fix: Add
python_maithili --replinteractive mode. - Labels: enhancement, P3
- Issue: No
requirements.txtorrequirements-dev.txt. Project currently has zero deps, but test/lint tools need to be pinned. - Fix: Add
requirements-dev.txtwith pytest, mypy, flake8 versions pinned. - Labels: infra, P3
| Priority | Count | Focus |
|---|---|---|
| P0 | 4 | Security holes, data-corrupting bugs, invalid license |
| P1 | 5 | Testing, CI/CD, compliance foundations |
| P2 | 5 | Code quality, docs cleanup, contributor experience |
| P3 | 5 | Features, nice-to-haves, polish |
| Total | 19 |