benthayer / benthayer/git-gud

Don't overwrite existing files in `make_level.py`

Open
#207 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
558
Forks
53
PR merge metrics
No merged PRs in 30d

Description

If you start with `setup.spec` and `test.spec` but then want templates for the rest of the files and for `__init__.py`s and `setup.py`, right now `make_level.py` overwrites `setup.spec` and `test.spec`. We should avoid that and some other things.

This applies to
- `skills/skill/__init__.py`
- `skills/skill/_level/xyz`

Contributor guide

Open the contributing guide

Research direction

Start by locating and reading make_level.py, then inspect the existing files under skills/skill/__init__.py and skills/skill/_level/xyz. Reproduce the case with existing setup.spec and test.spec files, and verify that generation leaves them unchanged while still creating the requested missing templates and files.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.