Skip to content

Commit

Permalink
Added IDEA file templates with built-in license headers. (#79)
Browse files Browse the repository at this point in the history
* Added IDEA file templates with built-in license headers.

* Reformatted file templates and added them to the nox reformatter pipeline.
  • Loading branch information
Nekokatt authored Aug 23, 2020
1 parent 1aca799 commit 5fb11fd
Show file tree
Hide file tree
Showing 9 changed files with 187 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .idea/fileTemplates/Cascading Style Sheet.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions .idea/fileTemplates/JS Script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/fileTemplates/JSON File.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions .idea/fileTemplates/Mako Template.mako

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions .idea/fileTemplates/Nox Pipeline.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions .idea/fileTemplates/Python Module.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/fileTemplates/YAML File.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions .idea/fileTemplates/py.test Test Suite.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pipelines/format.nox.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"pipelines",
"setup.py",
"noxfile.py",
os.path.join(".idea", "fileTemplates"),
]

GIT = shutil.which("git")
Expand Down Expand Up @@ -155,7 +156,7 @@ def remove_trailing_whitespaces_for_file(file) -> bool:

if GIT is not None:
result = subprocess.check_call(
[GIT, "add", file, "-v"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=None
[GIT, "add", file, "-vf"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=None
)
assert result == 0, f"`git add {file} -v' exited with code {result}"
return True
Expand Down

0 comments on commit 5fb11fd

Please sign in to comment.