Add pre-commit
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
595b300a29
commit
cc174d843e
28 changed files with 41 additions and 34 deletions
19
.pre-commit-config.yaml
Normal file
19
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v3.2.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-added-large-files
|
||||||
|
- repo: https://github.com/prettier/pre-commit
|
||||||
|
rev: v2.1.2
|
||||||
|
hooks:
|
||||||
|
- id: prettier
|
||||||
|
- repo: https://github.com/ansible/ansible-lint.git
|
||||||
|
rev: v4.2.0
|
||||||
|
hooks:
|
||||||
|
- id: ansible-lint
|
||||||
|
files: \.(yaml|yml)$
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: Upgrade all packages
|
- name: Upgrade all packages
|
||||||
dnf:
|
dnf:
|
||||||
name: '*'
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install playerctl and flameshot
|
- name: Install playerctl and flameshot
|
||||||
|
|
|
@ -29,4 +29,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -29,4 +29,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -31,4 +31,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -29,4 +29,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -29,4 +29,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -32,4 +32,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -30,4 +30,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -28,4 +28,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -31,4 +31,3 @@ type=rpm-md
|
||||||
gpgcheck=1
|
gpgcheck=1
|
||||||
repo_gpgcheck=0
|
repo_gpgcheck=0
|
||||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-nonfree-fedora-$releasever
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
- name: Update all packages
|
- name: Update all packages
|
||||||
dnf:
|
dnf:
|
||||||
name: '*'
|
name: "*"
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: Install system-upgrade plugin
|
- name: Install system-upgrade plugin
|
||||||
|
|
Loading…
Reference in a new issue