Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linting enhancement: #374

Merged
merged 2 commits into from
Mar 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
args: [--maxkb=64]
- id: check-symlinks
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: requirements-txt-fixer

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.30.0
hooks:
- id: yamllint
args: [--format, parsable, --strict]

- repo: https://github.com/ansible-community/ansible-lint
rev: v6.9.1
rev: v6.14.3
hooks:
- id: ansible-lint
args: [--write]
additional_dependencies:
- keyring
- jmespath
- ansible

- repo: https://github.com/psf/black
rev: 22.10.0
rev: 23.1.0
hooks:
- id: black
11 changes: 7 additions & 4 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---
extends: default

ignore-from-file:
.gitignore
ignore-from-file: .gitignore

rules:
indentation:
spaces: 2
check-multi-line-strings: false
line-length:
max: 120
level: warning
max: 160
allow-non-breakable-words: true
allow-non-breakable-inline-mappings: false
level: error
document-start:
present: true
level: error
Expand Down Expand Up @@ -43,3 +44,5 @@ rules:
level: error
truthy: disable
comments-indentation: enable
comments:
min-spaces-from-content: 1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ We would like to thank the original authors for the work done.
<td width="230px"><img alt="Picture of Lionel Lecha" src="docs/images/lionel_lecha.png" /></td>
<td>
This work would never have reached the community as an Open Source project without the unconditional trust
of Lionel Lecha, director of SMAP APPUI @La Poste when I started to automate the deployment of nexus
for his unit in 2018 as an external contractor. Lionel died too early on the 17th of february 2023
of Lionel Lecha, director of SMAP APPUI @La Poste when I started to automate the deployment of nexus
for his unit in 2018 as an external contractor. Lionel died too early on the 17th of february 2023
at the age of 60. Thanks for your always equal good mood and your confidence.
</td>
</tr>
Expand Down
Loading