Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Use the mirsg pre-commit meta-hook and run on all files
Browse files Browse the repository at this point in the history
  • Loading branch information
p-j-smith committed Oct 24, 2023
1 parent f8e7bd8 commit 46cc429
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 35 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
push:
branches:
- main
- main

jobs:
build:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.9

- name: Set PY
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
Expand Down
34 changes: 3 additions & 31 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,5 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
- repo: https://github.com/UCL-MIRSG/.github
rev: v0.25.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [--fix=lf]
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: forbid-tabs
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
exclude: ".yml$"
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.0
hooks:
- id: check-github-workflows
- repo: https://github.com/ansible-community/ansible-lint.git
rev: v6.21.1
hooks:
- id: ansible-lint
args: ["-p", "."]
- id: mirsg-hooks
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ All variables are nested in the `docker` dictionary. See [defaults/main.yml](def
| Name | Description |
| ------------------ | ------------------------------------------------------------------------------------------------------- |
| `owner` | The OS user that will have ownership of the Docker service file and directory. Defaults to `root` |
| `group` | The OS group that will have ownership of the Docker service file and directory. Deafults to `root` |
| `group` | The OS group that will have ownership of the Docker service file and directory. Defaults to `root` |
| `service_file_dir` | The path to the Docker service. Defaults to `/etc/systemd/system/docker.service.d` |
| `service_name` | The name of the Docker service. Defaults to `docker` |
| `repo_url` | The url of the Docker repository. Defaults to `https://download.docker.com/linux/centos/docker-ce.repo` |
Expand Down
3 changes: 2 additions & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ galaxy_info:
# - 7
# - 99.99

galaxy_tags: []
galaxy_tags:
[]
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
Expand Down

0 comments on commit 46cc429

Please sign in to comment.