Skip to content

Commit 80cd05c

Browse files
committed
Added the .editorconfig file, extended the tests
1 parent f09ff14 commit 80cd05c

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

template/.editorconfig

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
charset = utf-8
11+
end_of_line = lf
12+
13+
[*.yml]
14+
indent_size = 2
15+
16+
[*.bat]
17+
indent_style = tab
18+
end_of_line = crlf
19+
20+
[LICENSE]
21+
insert_final_newline = false
22+
23+
[Makefile]
24+
indent_style = tab

tests/test_copier.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def test_project_folder(default_project):
2727
"docs/Makefile",
2828
"docs/readme.rst",
2929
"MANIFEST.in",
30+
".editorconfig",
3031
])
3132
def test_generated_file_exists(default_project, file_name):
3233
assert default_project.project_dir.joinpath(file_name).exists()

0 commit comments

Comments
 (0)