Skip to content

Commit

Permalink
pretty format json
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Jan 13, 2025
1 parent c0f1db3 commit cf8b50a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
13 changes: 4 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,16 @@ repos:
- id: fix-byte-order-marker
- id: mixed-line-ending
- id: no-commit-to-branch
args: [--branch, main]
args: [--branch=main]
- id: pretty-format-json
args: [--autofix]
- id: trailing-whitespace

- repo: https://github.com/adrienverge/yamllint
rev: v1.35.1
hooks:
- id: yamllint
args:
- --strict
- >
-d={extends: default, rules: {
document-start: disable,
line-length: {max: 110},
quoted-strings: {quote-type: single, required: only-when-needed},
truthy: {check-keys: false}}}
args: [--strict, --config-file, ./tests/.yamllint.yml]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
Expand Down
32 changes: 16 additions & 16 deletions environments/requirements/environments.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
[
{
"output_path": "./environments/tests/env-ci.yml",
"needs_dependencies": true,
"pin_exact": false,
"extras": [
"./environments/requirements/requirements-docs.txt",
"./environments/requirements/requirements-packaging.txt",
"./environments/requirements/requirements-tests.txt"
]
],
"needs_dependencies": true,
"output_path": "./environments/tests/env-ci.yml",
"pin_exact": false
},
{
"output_path": "./environments/tests/env-test-minimum-deps.yml",
"needs_dependencies": true,
"pin_exact": true,
"extras": [
"./environments/requirements/requirements-tests.txt"
]
],
"needs_dependencies": true,
"output_path": "./environments/tests/env-test-minimum-deps.yml",
"pin_exact": true
},
{
"output_path": "./environments/tests/requirements-test-latest-deps.txt",
"needs_dependencies": true,
"pin_exact": false,
"extras": [
"./environments/requirements/requirements-tests.txt"
]
],
"needs_dependencies": true,
"output_path": "./environments/tests/requirements-test-latest-deps.txt",
"pin_exact": false
},
{
"output_path": "./environments/requirements/requirements-all.txt",
"needs_dependencies": true,
"pin_exact": false,
"extras": [
"./environments/requirements/requirements-docs.txt",
"./environments/requirements/requirements-extras.txt",
"./environments/requirements/requirements-packaging.txt",
"./environments/requirements/requirements-tests.txt"
]
],
"needs_dependencies": true,
"output_path": "./environments/requirements/requirements-all.txt",
"pin_exact": false
}
]

0 comments on commit cf8b50a

Please sign in to comment.