Repository: OCHA-DAP/ocha-anticipy (language: python)

Issue:
Bugfix: upgrade black version in precommit
@turnerm I created a new pull request, with only the changes in the pre-commit file. However, if you run `pre-commit ...` in this branch (and in develop), also the requirements files will change.


Discussion / hints:
## Unit Test Results
    5 files  ±0      5 suites  ±0   38s [:stopwatch:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols "duration of all tests") -14s
  54 tests ±0    54 [:heavy_check_mark:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols "passed tests") ±0  0 [:zzz:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols "skipped / disabled tests") ±0  0 [:x:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols "failed tests") ±0 
270 runs  ±0  270 [:heavy_check_mark:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols "passed tests") ±0  0 [:zzz:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols "skipped / disabled tests") ±0  0 [:x:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols "failed tests") ±0 

Results for commit 31cc39dc. ± Comparison against base commit 634531c3.

# [Codecov](https://codecov.io/gh/OCHA-DAP/pa-aa-toolbox/pull/116?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OCHA-DAP) Report
> Merging [#116](https://codecov.io/gh/OCHA-DAP/pa-aa-toolbox/pull/116?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OCHA-DAP) (31cc39d) into [develop](https://codecov.io/gh/OCHA-DAP/pa-aa-toolbox/commit/634531c35d00d35c1747649eb689bdf479da1755?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OCHA-DAP) (634531c) will **not change** coverage.
> The diff coverage is `n/a`.

```diff
@@           Coverage Diff            @@
##           develop     #116   +/-   ##
========================================
  Coverage    93.86%   93.86%           
========================================
  Files           12       12           
  Lines          603      603           
========================================
  Hits           566      566           
  Misses          37       37           
```



------

[Continue to review full report at Codecov](https://codecov.io/gh/OCHA-DAP/pa-aa-toolbox/pull/116?src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OCHA-DAP).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OCHA-DAP)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/OCHA-DAP/pa-aa-toolbox/pull/116?src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OCHA-DAP). Last update [634531c...31cc39d](https://codecov.io/gh/OCHA-DAP/pa-aa-toolbox/pull/116?src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OCHA-DAP). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=OCHA-DAP).


Fix patch:
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 09341ce..9742d8b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -42,25 +42,24 @@ repos:
     hooks:
       - id: markdownlint
   - repo: https://github.com/jazzband/pip-tools
-    rev: 6.3.0
+    rev: 6.6.0
     hooks:
       - id: pip-compile
         name: pip-compile requirements.txt
         files: setup.cfg
-        args: [setup.cfg, -q, --no-header,
-               -o, requirements/requirements.txt]
+        args: [setup.cfg, -q, -o, requirements/requirements.txt]
       - id: pip-compile
         name: pip-compile requirements-docs.txt
         files: requirements/docs.in
-        args: [ requirements/docs.in, -q, --no-header,
-                -o, requirements/requirements-docs.txt ]
+        args: [ requirements/docs.in, -q, -o,
+                requirements/requirements-docs.txt ]
       - id: pip-compile
         name: pip-compile requirements-tests.txt
         files: requirements/tests.in
-        args: [requirements/tests.in, -q, --no-header,
-               -o, requirements/requirements-tests.txt]
+        args: [requirements/tests.in, -q, -o,
+               requirements/requirements-tests.txt]
       - id: pip-compile
         name: pip-compile requirements-dev.txt
         files: requirements/(dev.in|docs.in|tests.in|requirements.txt)
-        args: [requirements/dev.in, -q, --no-header,
-               -o, requirements/requirements-dev.txt]
+        args: [requirements/dev.in, -q, -o,
+               requirements/requirements-dev.txt]
diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst
index 4b1927b..1e19d69 100644
--- a/CONTRIBUTING.rst
+++ b/CONTRIBUTING.rst
@@ -4,7 +4,15 @@ Development
 Environment
 -----------
 
-To set up the development environment, please install all packages from
+Development is currently done using Python 3.9. We recommend using a virtual
+environment such as ``venv``:
+
+.. code:: shell
+
+    python3.9 -m venv venv
+    source venv/bin/activate
+
+In your virtual environment, please install all packages from
 ``requirements/requirements-dev.txt``:
 
 .. code:: shell
diff --git a/requirements/requirements-dev.txt b/requirements/requirements-dev.txt
index 20181fb..cc66cbf 100644
--- a/requirements/requirements-dev.txt
+++ b/requirements/requirements-dev.txt
@@ -1,3 +1,9 @@
+#
+# This file is autogenerated by pip-compile with python 3.9
+# To update, run:
+#
+#    pip-compile --output-file=requirements/requirements-dev.txt requirements/dev.in
+#
 affine==2.3.1
     # via
     #   -r requirements/requirements.txt
@@ -105,7 +111,7 @@ cryptography==36.0.2
     # via
     #   -r requirements/requirements.txt
     #   pyopenssl
-dask==2022.04.1
+dask[complete]==2022.04.1
     # via
     #   -r requirements/requirements.txt
     #   distributed
@@ -208,10 +214,6 @@ importlib-metadata==4.11.3
     # via
     #   -r requirements/requirements-docs.txt
     #   sphinx
-importlib-resources==5.7.1
-    # via
-    #   -r requirements/requirements.txt
-    #   jsonschema
 inflect==5.5.2
     # via
     #   -r requirements/requirements.txt
@@ -277,10 +279,6 @@ munch==2.5.0
     # via
     #   -r requirements/requirements.txt
     #   fiona
-mypy-extensions==0.4.3
-    # via
-    #   -r requirements/requirements.txt
-    #   typing-inspect
 ndg-httpsclient==0.5.1
     # via
     #   -r requirements/requirements.txt
@@ -493,14 +491,14 @@ rfc3986==2.0.0
     #   frictionless
 rioxarray==0.10.3
     # via -r requirements/requirements.txt
-ruamel.yaml==0.17.21
+ruamel-yaml==0.17.21
     # via
     #   -r requirements/requirements.txt
     #   hdx-python-utilities
-ruamel.yaml.clib==0.2.6
+ruamel-yaml-clib==0.2.6
     # via
     #   -r requirements/requirements.txt
-    #   ruamel.yaml
+    #   ruamel-yaml
 shapely==1.8.1.post1
     # via
     #   -r requirements/requirements.txt
@@ -626,11 +624,6 @@ typing-extensions==4.2.0
     #   -r requirements/requirements.txt
     #   bokeh
     #   pydantic
-    #   typing-inspect
-typing-inspect==0.7.1
-    # via
-    #   -r requirements/requirements.txt
-    #   defopt
 unidecode==1.3.4
     # via
     #   -r requirements/requirements.txt
@@ -686,9 +679,7 @@ zict==2.1.0
 zipp==3.8.0
     # via
     #   -r requirements/requirements-docs.txt
-    #   -r requirements/requirements.txt
     #   importlib-metadata
-    #   importlib-resources
 
 # The following packages are considered to be unsafe in a requirements file:
 # pip
diff --git a/requirements/requirements-docs.txt b/requirements/requirements-docs.txt
index 654c40b..c963393 100644
--- a/requirements/requirements-docs.txt
+++ b/requirements/requirements-docs.txt
@@ -1,3 +1,9 @@
+#
+# This file is autogenerated by pip-compile with python 3.9
+# To update, run:
+#
+#    pip-compile --output-file=requirements/requirements-docs.txt requirements/docs.in
+#
 alabaster==0.7.12
     # via sphinx
 babel==2.10.1
diff --git a/requirements/requirements.txt b/requirements/requirements.txt
index bc62652..e8d413e 100644
--- a/requirements/requirements.txt
+++ b/requirements/requirements.txt
@@ -1,3 +1,9 @@
+#
+# This file is autogenerated by pip-compile with python 3.9
+# To update, run:
+#
+#    pip-compile --output-file=requirements/requirements.txt setup.cfg
+#
 affine==2.3.1
     # via rasterio
 appdirs==1.4.4
@@ -54,7 +60,7 @@ colorama==0.4.4
     # via typer
 cryptography==36.0.2
     # via pyopenssl
-dask==2022.04.1
+dask[complete]==2022.04.1
     # via
     #   distributed
     #   xarray
@@ -104,8 +110,6 @@ idna==3.3
     #   requests
 ijson==3.1.4
     # via frictionless
-importlib-resources==5.7.1
-    # via jsonschema
 inflect==5.5.2
     # via quantulum3
 isodate==0.6.1
@@ -137,8 +141,6 @@ msgpack==1.0.3
     # via distributed
 munch==2.5.0
     # via fiona
-mypy-extensions==0.4.3
-    # via typing-inspect
 ndg-httpsclient==0.5.1
     # via hdx-python-api
 num2words==0.5.10
@@ -248,10 +250,10 @@ rfc3986==2.0.0
     # via frictionless
 rioxarray==0.10.3
     # via aa-toolbox (setup.cfg)
-ruamel.yaml==0.17.21
+ruamel-yaml==0.17.21
     # via hdx-python-utilities
-ruamel.yaml.clib==0.2.6
-    # via ruamel.yaml
+ruamel-yaml-clib==0.2.6
+    # via ruamel-yaml
 shapely==1.8.1.post1
     # via geopandas
 shellingham==1.4.0
@@ -301,9 +303,6 @@ typing-extensions==4.2.0
     #   aa-toolbox (setup.cfg)
     #   bokeh
     #   pydantic
-    #   typing-inspect
-typing-inspect==0.7.1
-    # via defopt
 unidecode==1.3.4
     # via
     #   libhxl
@@ -333,8 +332,6 @@ xlwt==1.3.0
     # via frictionless
 zict==2.1.0
     # via distributed
-zipp==3.8.0
-    # via importlib-resources
 
 # The following packages are considered to be unsafe in a requirements file:
 # setuptools


Test patch:
diff --git a/requirements/requirements-tests.txt b/requirements/requirements-tests.txt
index 90ea17f..6222447 100644
--- a/requirements/requirements-tests.txt
+++ b/requirements/requirements-tests.txt
@@ -1,3 +1,9 @@
+#
+# This file is autogenerated by pip-compile with python 3.9
+# To update, run:
+#
+#    pip-compile --output-file=requirements/requirements-tests.txt requirements/tests.in
+#
 attrs==21.4.0
     # via pytest
 cftime==1.6.0