Use yamlling
This commit is contained in:
parent
9159d4f44e
commit
4fb7266c21
@ -1,4 +1,4 @@
|
|||||||
Ansible must be installed.
|
Ansible must be installed.
|
||||||
|
|
||||||
Invoke with
|
Invoke with
|
||||||
`ansible-playbook -i hosts.ini dotfiles.yml -K`
|
`ansible-playbook -i hosts.yaml dotfiles.yml -K`
|
||||||
|
@ -92,6 +92,7 @@ let g:ale_linters = {'python': ['flake8', 'mypy'],}
|
|||||||
let g:ale_fixers = {'python': ['black', 'isort']}
|
let g:ale_fixers = {'python': ['black', 'isort']}
|
||||||
let g:ale_python_pylint_options = '--disable=C0111'
|
let g:ale_python_pylint_options = '--disable=C0111'
|
||||||
let g:ale_python_mypy_options = '--ignore-missing-imports --disallow-untyped-defs --disallow-incomplete-defs'
|
let g:ale_python_mypy_options = '--ignore-missing-imports --disallow-untyped-defs --disallow-incomplete-defs'
|
||||||
|
let g:ale_python_flake8_options = '--max-line-length=88 --ignore=E501,W503'
|
||||||
|
|
||||||
" Black
|
" Black
|
||||||
let g:black_linelength = 88
|
let g:black_linelength = 88
|
||||||
|
10
roles/dotfiles/files/yamllint_config
Normal file
10
roles/dotfiles/files/yamllint_config
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
extends: relaxed
|
||||||
|
|
||||||
|
rules:
|
||||||
|
line-length: disable
|
||||||
|
braces:
|
||||||
|
level: warning
|
||||||
|
max-spaces-inside: 1
|
||||||
|
brackets:
|
||||||
|
level: warning
|
||||||
|
max-spaces-inside: 1
|
@ -46,6 +46,7 @@
|
|||||||
- vim-nox
|
- vim-nox
|
||||||
- wdisplays
|
- wdisplays
|
||||||
- wl-clipboard
|
- wl-clipboard
|
||||||
|
- yamllint
|
||||||
state: present
|
state: present
|
||||||
cache_valid_time: 3600
|
cache_valid_time: 3600
|
||||||
|
|
||||||
@ -79,6 +80,7 @@
|
|||||||
- '{{ home }}/.config/rofi/config.rasi'
|
- '{{ home }}/.config/rofi/config.rasi'
|
||||||
- '{{ home }}/.config/kanshi/config'
|
- '{{ home }}/.config/kanshi/config'
|
||||||
- '{{ home }}/.config/foot/foot.ini'
|
- '{{ home }}/.config/foot/foot.ini'
|
||||||
|
- '{{ home }}/.config/yamllint/config'
|
||||||
- '{{ home }}/.gitconfig'
|
- '{{ home }}/.gitconfig'
|
||||||
- '{{ home }}/.gnupg/gpg-agent.conf'
|
- '{{ home }}/.gnupg/gpg-agent.conf'
|
||||||
- '{{ home }}/.sway/config'
|
- '{{ home }}/.sway/config'
|
||||||
@ -99,6 +101,7 @@
|
|||||||
- '{{ home }}/pictures/shots/'
|
- '{{ home }}/pictures/shots/'
|
||||||
- '{{ home }}/.gnupg/'
|
- '{{ home }}/.gnupg/'
|
||||||
- '{{ home }}/.sway/'
|
- '{{ home }}/.sway/'
|
||||||
|
- '{{ home }}/.config/yamllint/'
|
||||||
- '{{ home }}/bin/'
|
- '{{ home }}/bin/'
|
||||||
- '{{ home }}/.local/share/systemd/user'
|
- '{{ home }}/.local/share/systemd/user'
|
||||||
|
|
||||||
@ -137,27 +140,5 @@
|
|||||||
dest: '{{ home }}/.config/foot/foot.ini'
|
dest: '{{ home }}/.config/foot/foot.ini'
|
||||||
- src: '{{ files_dir }}/bin/git-sync'
|
- src: '{{ files_dir }}/bin/git-sync'
|
||||||
dest: '{{ home }}/bin/git-sync'
|
dest: '{{ home }}/bin/git-sync'
|
||||||
|
- src: '{{ files_dir }}/yamllint_config'
|
||||||
- name: Create note sync service
|
dest: '{{ home }}/.config/yamllint/config'
|
||||||
ansible.builtin.template:
|
|
||||||
src: 'templates/systemd/note-sync/note-sync.service.j2'
|
|
||||||
dest: '{{ home }}/.local/share/systemd/user/note-sync.service'
|
|
||||||
mode: '644'
|
|
||||||
|
|
||||||
- name: Create note sync timer
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: 'templates/systemd/note-sync/note-sync.timer.j2'
|
|
||||||
dest: '{{ home }}/.local/share/systemd/user/note-sync.timer'
|
|
||||||
mode: '644'
|
|
||||||
|
|
||||||
- name: Reload systemd
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
scope: user
|
|
||||||
daemon_reload: true
|
|
||||||
|
|
||||||
- name: Enable note sync timer
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: note-sync.timer
|
|
||||||
scope: user
|
|
||||||
state: started
|
|
||||||
enabled: true
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user