Skip to content

Write a .gitignore file into htmlcov #1244

Closed
@nedbat

Description

@nedbat

To keep people from accidentally committing the HTML report to git, or to keep them from having to edit their .gitignore to prevent it, the html command can write a .gitignore file into the directory.

It should only write the file if it doesn't already exist. This would let people edit the .gitignore if they did want to commit the report.

Some people suggested only writing the file if it's a git repo, but that's over-engineered. One more tiny dot file inside the report directory won't hurt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions