Skip to content

Commit f6754f4

Browse files
authored
Make template .gitignore a file (#103)
2 parents 1b41f44 + 5c7f546 commit f6754f4

File tree

2 files changed

+77
-1
lines changed

2 files changed

+77
-1
lines changed

template/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

template/.gitignore

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
5+
# C extensions
6+
*.so
7+
8+
# Distribution / packaging
9+
.Python
10+
env/
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
*.egg-info/
23+
.installed.cfg
24+
*.egg
25+
**/_version.py
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
cov.xml
46+
.pytest_cache/
47+
.mypy_cache/
48+
49+
# Translations
50+
*.mo
51+
*.pot
52+
53+
# Django stuff:
54+
*.log
55+
56+
# Sphinx documentation
57+
docs/_build/
58+
59+
# PyBuilder
60+
target/
61+
62+
# likely venv names
63+
.venv*
64+
venv*
65+
66+
# further build artifacts
67+
lockfiles/
68+
69+
# ruff cache
70+
.ruff_cache/

tests/test_example.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,10 @@ def test_example_repo_updates(tmp_path: Path):
9595
f"{generated_path} {example_path}"
9696
)
9797
assert not output, output
98+
99+
100+
def test_gitignore_same():
101+
with open(TOP / ".gitignore") as top_gi, open(
102+
TOP / "template" / ".gitignore"
103+
) as template_gi:
104+
assert top_gi.read() == template_gi.read()

0 commit comments

Comments
 (0)