Use yamlling

This commit is contained in:
Johannes Rothe 2023-06-21 17:14:44 +02:00
parent 9159d4f44e
commit 4fb7266c21
4 changed files with 17 additions and 25 deletions

View File

@ -1,4 +1,4 @@
Ansible must be installed.
Invoke with
`ansible-playbook -i hosts.ini dotfiles.yml -K`
`ansible-playbook -i hosts.yaml dotfiles.yml -K`

View File

@ -92,6 +92,7 @@ let g:ale_linters = {'python': ['flake8', 'mypy'],}
let g:ale_fixers = {'python': ['black', 'isort']}
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_flake8_options = '--max-line-length=88 --ignore=E501,W503'
" Black
let g:black_linelength = 88

View 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

View File

@ -46,6 +46,7 @@
- vim-nox
- wdisplays
- wl-clipboard
- yamllint
state: present
cache_valid_time: 3600
@ -79,6 +80,7 @@
- '{{ home }}/.config/rofi/config.rasi'
- '{{ home }}/.config/kanshi/config'
- '{{ home }}/.config/foot/foot.ini'
- '{{ home }}/.config/yamllint/config'
- '{{ home }}/.gitconfig'
- '{{ home }}/.gnupg/gpg-agent.conf'
- '{{ home }}/.sway/config'
@ -99,6 +101,7 @@
- '{{ home }}/pictures/shots/'
- '{{ home }}/.gnupg/'
- '{{ home }}/.sway/'
- '{{ home }}/.config/yamllint/'
- '{{ home }}/bin/'
- '{{ home }}/.local/share/systemd/user'
@ -137,27 +140,5 @@
dest: '{{ home }}/.config/foot/foot.ini'
- src: '{{ files_dir }}/bin/git-sync'
dest: '{{ home }}/bin/git-sync'
- name: Create note sync service
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
- src: '{{ files_dir }}/yamllint_config'
dest: '{{ home }}/.config/yamllint/config'