Browse Source

initial commit

Médéric Hurier 3 months ago
commit
aa370e7fff

+ 3
- 0
cookiecutter.json View File

@@ -0,0 +1,3 @@
1
+{
2
+    "name": "formats"
3
+}

+ 12
- 0
{{cookiecutter.name}}/Makefile View File

@@ -0,0 +1,12 @@
1
+.PHONY: format
2
+
3
+init-{{cookiecutter.name}}: .venv
4
+	.venv/bin/pip install '.[{{cookiecutter.name}}]'
5
+	ln -s '{{cookiecutter.name}}/yapf.ini' '.style.yapf'
6
+
7
+clean-{{cookiecutter.name}}: ;
8
+
9
+commit-{{cookiecutter.name}}: format;
10
+
11
+format: .venv
12
+	.venv/bin/yapf --in-place --recursive --style='{{cookiecutter.name}}/yapf.ini' .

+ 1
- 0
{{cookiecutter.name}}/requirements.txt View File

@@ -0,0 +1 @@
1
+yapf

+ 3
- 0
{{cookiecutter.name}}/yapf.ini View File

@@ -0,0 +1,3 @@
1
+[yapf]
2
+column_limit = 79
3
+based_on_style = pep8