Skip to content

Commit

Permalink
precommit ok
Browse files Browse the repository at this point in the history
  • Loading branch information
paul.marcombes committed Oct 14, 2024
1 parent 570b9a6 commit e7954a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,15 @@ repos:
- id: mypy
additional_dependencies:
- types-PyYAML
exclude: function_py.py|function_py_test.py
- repo: https://github.com/rhysd/actionlint
rev: v1.7.1
hooks:
- id: actionlint-docker
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
# TODO enable the hook
# - repo: https://github.com/PyCQA/bandit
# rev: 1.7.9
Expand Down
16 changes: 8 additions & 8 deletions bigfunctions/get_transport_emissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ output:
name: co2_emissions_by_transport_mode
type: json
examples:
- description: "Get transport emissions for 200 km"
arguments:
- description: "Get transport emissions for 200 km"
arguments:
- "200"
output: |
[
{"id": 2, "name": "High-speed train","value":0.46},
{"id": 22,"name": "Carpooling combustion (1 passenger)","value":19.2},
...
]
output: |
[
{"id": 2, "name": "High-speed train","value":0.46},
{"id": 22,"name": "Carpooling combustion (1 passenger)","value":19.2},
...
]
code: |
{BIGFUNCTIONS_DATASET}.get_json(
format('https://impactco2.fr/api/v1/transport?km=%d&language=en', distance_km),
Expand Down

0 comments on commit e7954a7

Please sign in to comment.