]> git.friedersdorff.com Git - max/saltfiles.git/commitdiff
COnfigure flake8
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 22 Apr 2020 11:08:17 +0000 (12:08 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 22 Apr 2020 11:08:17 +0000 (12:08 +0100)
states/vim/files/flake8 [new file with mode: 0644]
states/vim/init.sls

diff --git a/states/vim/files/flake8 b/states/vim/files/flake8
new file mode 100644 (file)
index 0000000..e69ea86
--- /dev/null
@@ -0,0 +1,3 @@
+[flake8]
+max_line_length = 99
+max_doc_length = 72
index baec41c0b920719eae01b07cb4e6481051c10ab4..69b9781411ed80e4657bb73acdab757521b189ed 100644 (file)
@@ -9,6 +9,14 @@ vimrc:
     - group: {{ grains['user'] }}
     - mode: 640
 
+flake8:
+  file.managed:
+    - name: {{ grains['homedir'] }}/.config/flake8
+    - source : salt:///vim/files/flake8
+    - user: {{ grains['user'] }}
+    - group: {{ grains['user'] }}
+    - mode: 640
+
 bundle dir:
   file.directory:
     - name: ~/.vim/bundle