-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace some checks by pre commits hooks
To use more standards tools
- Loading branch information
Showing
27 changed files
with
570 additions
and
1,440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
headers: | | ||
""" | ||
Automatically generated file from a JSON schema. | ||
""" | ||
generate: | ||
- source: c2cciutils/schema-applications.json | ||
destination: c2cciutils/applications_definition.py | ||
root_name: ApplicationsConfiguration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash -eux | ||
|
||
pip install --requirement=requirements.txt | ||
touch c2cciutils/schema-applications.json c2cciutils/schema.json | ||
make jsonschema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- id: workflows-require-timeout | ||
name: workflows require timeout | ||
description: Check that the workflows have a timeout | ||
entry: c2cciutils-checks | ||
args: | ||
- --check=workflow | ||
files: ^\.github/workflows/.+\.ya?ml$ | ||
language: python | ||
- id: check-poetry | ||
name: poetry check | ||
description: Validates the structure of the pyproject.toml file | ||
entry: poetry check | ||
language: python | ||
additional_dependencies: | ||
- poetry | ||
pass_filenames: false | ||
files: ^pyproject\.toml$ | ||
- id: lock-poetry | ||
name: poetry lock | ||
description: Lock the from the pyproject.toml file | ||
entry: poetry lock | ||
args: | ||
- --no-update | ||
language: python | ||
additional_dependencies: | ||
- poetry | ||
pass_filenames: false | ||
files: ^pyproject\.toml$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.