diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..65338ad6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - id: check-merge-conflict + - id: check-toml + - id: check-symlinks + - id: no-commit-to-branch + args: ['--branch', 'main'] +- repo: https://github.com/psf/black + rev: 23.11.0 + hooks: + - id: black + args: ['--check', '--diff', '.'] +- repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.1.6 + hooks: + - id: ruff diff --git a/packit.yaml b/packit.yaml index 9c24b670..9a1cbef8 100644 --- a/packit.yaml +++ b/packit.yaml @@ -25,7 +25,7 @@ jobs: - fedora-all - centos-stream-8-x86_64 - centos-stream-9-x86_64 - + - job: tests trigger: pull_request targets: