Repository: openfisca/openfisca-core (language: python)

Issue:
Pristine editable install with make throws pytest error
Hi there!

I ~really~ so much enjoy OpenFisca ~but~ that I recently encountered an issue and I'm reporting it.

### Here is what I did:

I tried to pristine install the library in editable mode with make:

```sh
make install
```

### Here is what I expected to happen:

To receive this message:

```
[⚙] Install project dependencies…
```

### Here is what actually happened:

It works, but I'm getting an error related to `pytest`:

```
pyenv: pytest: command not found
...
[⚙] Install project dependencies… 
```

### Here is data (or links to it) that can help you reproduce this issue:

Python 3.9.13
OpenFisca 35.8.4

## Context

I identify more as a:

- Maintainer _(I work on OpenFisca's shared infrastructure)_.



Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0add52c0f5..1b796fd3c0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
 # Changelog
 
+### 35.8.5 [#1137](https://github.com/openfisca/openfisca-core/pull/1137)
+
+#### Technical changes
+
+- Fix pylint dependency in fresh editable installations
+  - Ignore pytest requirement, used to collect test cases, if it is not yet installed.
+
 ### 35.8.4 [#1131](https://github.com/openfisca/openfisca-core/pull/1131)
 
 #### Technical changes
diff --git a/openfisca_tasks/install.mk b/openfisca_tasks/install.mk
index f37d17f26f..57a9d65e5a 100644
--- a/openfisca_tasks/install.mk
+++ b/openfisca_tasks/install.mk
@@ -2,7 +2,7 @@
 install:
 	@$(call print_help,$@:)
 	@pip install --upgrade pip twine wheel
-	@pip install --editable .[dev] --upgrade --use-deprecated=legacy-resolver
+	@pip install --editable ".[dev]" --upgrade --use-deprecated=legacy-resolver
 
 ## Uninstall project dependencies.
 uninstall:
diff --git a/setup.py b/setup.py
index 423fc2dd9a..ceb3bcfda0 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@
     'autopep8 >= 1.4.0, < 1.6.0',
     'coverage == 6.0.2',
     'darglint == 1.8.0',
-    'flake8 >= 3.9.0, < 4.0.0',
+    'flake8 >= 4.0.0, < 4.1.0',
     'flake8-bugbear >= 19.3.0, < 20.0.0',
     'flake8-docstrings == 1.6.0',
     'flake8-print >= 3.1.0, < 4.0.0',
@@ -47,7 +47,7 @@
 
 setup(
     name = 'OpenFisca-Core',
-    version = '35.8.4',
+    version = '35.8.5',
     author = 'OpenFisca Team',
     author_email = 'contact@openfisca.org',
     classifiers = [


Test patch:
diff --git a/openfisca_tasks/test_code.mk b/openfisca_tasks/test_code.mk
index 4abcce6aed..1615c8dba4 100644
--- a/openfisca_tasks/test_code.mk
+++ b/openfisca_tasks/test_code.mk
@@ -20,7 +20,7 @@ test-code: test-core test-country test-extension
 	@$(call print_pass,$@:)
 
 ## Run openfisca-core tests.
-test-core: $(shell pytest --quiet --quiet --collect-only | cut -f 1 -d ":")
+test-core: $(shell pytest --quiet --quiet --collect-only 2> /dev/null | cut -f 1 -d ":")
 	@$(call print_help,$@:)
 	@PYTEST_ADDOPTS="$${PYTEST_ADDOPTS} ${pytest_args}" \
 		coverage run -m \