Skip to content

Commit

Permalink
Add pre-commit-config and apply rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Mar 6, 2024
1 parent 3fc1b12 commit ffaa981
Show file tree
Hide file tree
Showing 93 changed files with 99 additions and 105 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
2 changes: 1 addition & 1 deletion definitions/acidification_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{
"specifier": "no-oa"
}
]
]
2 changes: 1 addition & 1 deletion definitions/diazotroph_scenario.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{
"specifier": "wo-diaz"
}
]
]
9 changes: 0 additions & 9 deletions definitions/disease.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,3 @@
]
}
]









2 changes: 1 addition & 1 deletion definitions/fishing_type.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
{
"specifier": "no-fishing"
}
]
]
2 changes: 1 addition & 1 deletion definitions/forest_stand.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,4 @@
"thinning": "below",
"comment": ""
}
]
]
2 changes: 1 addition & 1 deletion definitions/identifier.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,4 @@
"specifier": "sealevelrise_contrib",
"title": "Sealevelrise contribution"
}
]
]
2 changes: 1 addition & 1 deletion definitions/irrigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"specifier": "noirr",
"title": "No irrigation (rainfed land)"
}
]
]
2 changes: 1 addition & 1 deletion definitions/lake_site.json
Original file line number Diff line number Diff line change
Expand Up @@ -527,4 +527,4 @@
"lat": 50.09,
"type": "reservoir"
}
]
]
2 changes: 1 addition & 1 deletion definitions/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,4 +533,4 @@
"specifier": "zoomss",
"title": "ZooMSS"
}
]
]
2 changes: 1 addition & 1 deletion definitions/period.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"title": "Future (extended)",
"description": "Future (extended) simulation period."
}
]
]
2 changes: 1 addition & 1 deletion definitions/product.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"specifier": "DerivedOutputData",
"title": "Derived Output Data"
}
]
]
2 changes: 1 addition & 1 deletion definitions/region.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"specifier": "lena",
"title": "Lena catchment"
}
]
]
2 changes: 1 addition & 1 deletion definitions/resolution.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
{
"specifier": "national"
}
]
]
2 changes: 1 addition & 1 deletion definitions/river.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
{
"specifier": "yellow"
}
]
]
2 changes: 1 addition & 1 deletion definitions/river_basin.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,4 +356,4 @@
"river": "Yellow, Huang He",
"river_specifier": "yellow"
}
]
]
2 changes: 1 addition & 1 deletion definitions/sens_scenario.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
"ISIMIP2a"
]
}
]
]
2 changes: 1 addition & 1 deletion definitions/subcategory.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"specifier": "sealevelrise",
"title": "Sealevelrise"
}
]
]
2 changes: 1 addition & 1 deletion definitions/variable.json
Original file line number Diff line number Diff line change
Expand Up @@ -2071,4 +2071,4 @@
"specifier": "af-heat",
"units": "%"
}
]
]
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
"0p5deg": "halfdeg",
"countrylevel": "national"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"countrylevel": "national",
"population": "pop"
}
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/agriculture.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/biodiversity.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/biomes.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/forestry.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/lakes_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/marine-fishery_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/marine-fishery_regional.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/permafrost.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/water_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/OutputData/water_regional.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
"HistObs": "atmosphere",
"sfcWind": "sfcwind"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"countrylevel": "national",
"population": "pop"
}
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/SecondaryOutputData/biomes.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2a/SecondaryOutputData/water_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/DerivedOutputData/Lange2020.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/InputData/population.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"countrylevel": "national",
"population": "pop"
}
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/agriculture.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/biodiversity.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/biomes.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/forestry.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/health.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/lakes_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/lakes_local.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/marine-fishery_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/marine-fishery_regional.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/permafrost.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/water_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/OutputData/water_regional.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/SecondaryInputData/population.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
"countrylevel": "national",
"population": "pop"
}
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/SecondaryOutputData/agriculture.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/SecondaryOutputData/lakes_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/SecondaryOutputData/lakes_local.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
2 changes: 1 addition & 1 deletion pattern/ISIMIP2b/SecondaryOutputData/water_global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"(?P<start_year>\\d{4})",
"(?P<end_year>\\d{4})"
]
}
}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit~=3.6.2
2 changes: 1 addition & 1 deletion schema/ISIMIP2a/InputData/reservoirs_dams.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
}
}
}
}
}
Loading

0 comments on commit ffaa981

Please sign in to comment.