From e966dcd93c0fa3eb80f420088c6de7d9251627e2 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sat, 7 Oct 2023 15:54:45 +0200 Subject: [PATCH 1/2] Update CONTRIBUTING.rst to mention tag fetches closes #11485 --- CONTRIBUTING.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index bcfd205b1..59b1a533d 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -197,6 +197,7 @@ Short version ~~~~~~~~~~~~~ #. Fork the repository. +#. fetch tags from upstream if necessary (if you cloned only main `git fetch --tags https://github.com/pytest-dev/pytest` #. Enable and install `pre-commit `_ to ensure style-guides and code checks are followed. #. Follow **PEP-8** for naming and `black `_ for formatting. #. Tests are run using ``tox``:: @@ -236,6 +237,7 @@ Here is a simple overview, with pytest-specific bits: $ git clone git@github.com:YOUR_GITHUB_USERNAME/pytest.git $ cd pytest + $ git fetch --tags https://github.com/pytest-dev/pytest # now, create your own branch off "main": $ git checkout -b your-bugfix-branch-name main From 696859fc434ddbbfa582002dc2cf5d82eb3a1765 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Sat, 7 Oct 2023 16:16:18 +0200 Subject: [PATCH 2/2] Update CONTRIBUTING.rst Co-authored-by: Bruno Oliveira --- CONTRIBUTING.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 59b1a533d..e2230cbbd 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -197,7 +197,7 @@ Short version ~~~~~~~~~~~~~ #. Fork the repository. -#. fetch tags from upstream if necessary (if you cloned only main `git fetch --tags https://github.com/pytest-dev/pytest` +#. Fetch tags from upstream if necessary (if you cloned only main `git fetch --tags https://github.com/pytest-dev/pytest`). #. Enable and install `pre-commit `_ to ensure style-guides and code checks are followed. #. Follow **PEP-8** for naming and `black `_ for formatting. #. Tests are run using ``tox``::