mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-11-21 07:53:44 +01:00
Dependencies updates for May 2023 (#1326)
* Dependencies updates for May 2023 * adding updates to pre-commit and validation * updating pre-commit config
This commit is contained in:
parent
840b0210ec
commit
12638369b3
3
.github/workflows/validation.yml
vendored
3
.github/workflows/validation.yml
vendored
@ -19,6 +19,9 @@ jobs:
|
||||
run: |
|
||||
yamllint --format github --strict \
|
||||
device-types/ module-types/
|
||||
- name: Format YAML files (hooks)
|
||||
run: |
|
||||
pre-commit run --config .pre-commit-hooks-config.yaml --all-files
|
||||
- name: Format YAML files (yamlfmt)
|
||||
run: |
|
||||
pre-commit run --config .pre-commit-yamlfmt-config.yaml --all-files
|
||||
|
@ -2,19 +2,19 @@
|
||||
files: ^(device-types|module-types)/
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
name: Check YAML files
|
||||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
|
||||
rev: 0.2.2
|
||||
rev: 0.2.3
|
||||
hooks:
|
||||
- id: yamlfmt
|
||||
args: [--mapping, '2', --sequence, '4', --offset, '2']
|
||||
- repo: https://github.com/adrienverge/yamllint.git
|
||||
rev: v1.27.1
|
||||
rev: v1.31.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
name: Lint YAML files
|
||||
|
10
.pre-commit-hooks-config.yaml
Normal file
10
.pre-commit-hooks-config.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
files: ^(device-types|module-types)/
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
name: Check YAML files
|
@ -1,15 +1,8 @@
|
||||
---
|
||||
files: ^(device-types|module-types)/
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
name: Check YAML files
|
||||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
|
||||
rev: 0.2.2
|
||||
rev: 0.2.3
|
||||
hooks:
|
||||
- id: yamlfmt
|
||||
args: [--mapping, '2', --sequence, '4', --offset, '2']
|
||||
|
@ -1,5 +1,5 @@
|
||||
jsonschema==4.17.3
|
||||
pre-commit==3.2.1
|
||||
pytest==7.2.2
|
||||
pre-commit==3.2.2
|
||||
pytest==7.3.1
|
||||
PyYAML==6.0
|
||||
yamllint==1.30.0
|
||||
yamllint==1.31.0
|
||||
|
Loading…
Reference in New Issue
Block a user