From 829d7d3ffdb2cbf4251191f8e30b6abaeed010a8 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Mon, 30 Aug 2021 22:31:23 -0400 Subject: [PATCH] Initial commit --- .gitignore | 7 +++++++ .pre-commit-config.yaml | 28 ++++++++++++++++++++++++++++ README.md | 4 ++++ 3 files changed, 39 insertions(+) create mode 100644 .gitignore create mode 100644 .pre-commit-config.yaml create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3efabe7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +*.retry +*.swp +playbooks/testing.yml +.mypy_cache/* +*.idea +**/__pycache__/ +.venv/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..1a90701 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,28 @@ +--- +# All of the pre-commit hooks here actually use the `pytyhon` pre-commit language +# setting. However, for the python language setting, pre-commit will create and manage +# a cached virtual environment for each hook ID and do a bare `pip install ` into +# the venv to setup the hook. This can result in conflicting dependency versions between +# the version installed to the pre-commit venv and the version installed to the Poetry +# venv specified in the lockfile. +# +# The solution is to specify `language: system` for all hooks and then install the +# required dependencies to the Poetry venv. The `system` language skips the isolated +# venv creation and looks for the entrypoint specified by the hook in the global +# environment which, if running in the Poetry venv, will find the entrypoint provided +# by the Poetry-managed dependency. +# +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.3.0 + hooks: + - id: end-of-file-fixer + language: system + - id: fix-encoding-pragma + args: + - "--remove" + language: system + - id: trailing-whitespace + language: system + - id: check-merge-conflict + language: system diff --git a/README.md b/README.md new file mode 100644 index 0000000..5dd0b35 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# skylab-ansible + +Ansible configs for the Skylab Homelab +