summaryrefslogtreecommitdiff
path: root/doc/en/goodpractices.rst
AgeCommit message (Collapse)Author
2020-07-17docs: support Sphinx>=3.1 and require itRan Benita
Previously was restricted to >=1.8.2,<2.1, but newer versions have some nice improvements I'd like to be able to use in upcoming changes. Changelog: https://www.sphinx-doc.org/en/master/changes.html#release-3-1-0-released-jun-08-2020 There are two issues that came up: 1. `highlightlang` is deprecated for `highlight`. 2. Doesn't like having two `automethod` generated for the same `Metafunc.parametrize` method. Gives this warning: `pytest/doc/en/reference.rst:846: WARNING: duplicate object description of _pytest.python.Metafunc.parametrize, other instance in reference, use :noindex: for one of them` To work around this I make `pytest.mark.parametrize` link to `Metafunc.parametrize` instead of repeating it.
2020-06-13Introduce --import-mode=importlib (#7246)Bruno Oliveira
Fix #5821 Co-authored-by: Ran Benita <ran@unusedvar.com>
2020-03-06docs: remove doc/en/links.inc (#6853)Daniel Hahler
2019-09-04Fix anchor link from Good Practices to Pythonpath docGene Wood
2019-08-06replace implicit code tag with colon .replace("::\n\n.. code-block", ↵boris
":\n\n.. code-block")
2019-08-06Revert "remove implicit code tags .replace("::\n\n.. code-block", "\n\n.. ↵boris
code-block")" This reverts commit 9fce0bdd88c425aa7b98dc4cc0c2696c19fdbd95.
2019-08-06remove implicit code tags .replace("::\n\n.. code-block", "\n\n.. code-block")boris
2019-08-06label code blocksboris
2019-07-03remove documentation about setuptools integration Refs #5534Thomas Grainger
integrating with `python setup.py test` is not good practice!
2019-06-02Drop Python 2.7 and 3.4 supportBruno Oliveira
* Update setup.py requires and classifiers * Drop Python 2.7 and 3.4 from CI * Update docs dropping 2.7 and 3.4 support * Fix mock imports and remove tests related to pypi's mock module * Add py27 and 34 support docs to the sidebar * Remove usage of six from tmpdir * Remove six.PY* code blocks * Remove sys.version_info related code * Cleanup compat * Remove obsolete safe_str * Remove obsolete __unicode__ methods * Remove compat.PY35 and compat.PY36: not really needed anymore * Remove unused UNICODE_TYPES * Remove Jython specific code * Remove some Python 2 references from docs Related to #5275
2019-02-23Fix docs about pytest conventions for test functionsBruno Oliveira
Fix #4818
2019-02-21Fix lintingBruno Oliveira
2019-02-21Revert recommending virtualenv for Python 3.4Bruno Oliveira
`venv` is already available in Python 3.4, my mistake
2019-02-21Mention that virtualenv should be used for Python 3.4 as wellBruno Oliveira
2019-02-21recommend venv or virtualenv, depending on python versionJeff Hale
venv has been installed with Python since 3.3. https://docs.python.org/3/library/venv.html
2019-02-20Recommend use venv instead of virtualenv Jeff Hale
From the Python docs: "Changed in version 3.5: The use of venv is now recommended for creating virtual environments." -https://docs.python.org/3/library/venv.html
2019-01-09Mention PYTHONPATH semantics in goodpractices.rstBruno Oliveira
Fix #4625
2018-08-26Code block: :: missing and 4 spaces instead of 5Gandalf Saxe
I just noticed the newly committed code block doesn't format as a code block without `::` in the paragraph before. Perhaps doesn't make a difference, but also corrected 5 spaces to 4 which seems standard.
2018-08-24correct cmdclassAndrew Champion
2018-08-23Fix lintingBruno Oliveira
2018-08-23Move information on `pip install -e` to the topGandalf Saxe
Should fix complaints in #2421.
2018-07-04Correct code blocks in docsAnthony Sottile
2018-06-03blacken docsAnthony Sottile
2018-05-25Fix tox spelling (all lower case).Oliver Bestwalter
2018-05-13Spelling and grammar fixesVille Skyttä
2018-04-26Update all pypi.python.org URLs to pypi.orgJon Dufresne
For details on the new PyPI, see the blog post: https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2017-08-25Fix typo in goodpractices.rstJoe Talbott
2017-08-16Fixed error in 'Good Practices' code snippetAntonio Hidalgo
2017-07-27Move historical notes to their own docBruno Oliveira
Fix #2512
2017-04-06moved documentation of conftest.py hack to nose.rstSkylar Downes
2017-04-06Merge branch 'master' into masterSkylar Downes
2017-03-14Mention the src layout as recommended practiceBruno Oliveira
2017-03-14Add more information to test-layout docs as discussed during PRBruno Oliveira
2017-03-09Fix typoBruno Oliveira
2017-03-09Attempt to clarify the confusion regarding __init__ files and unique test namesBruno Oliveira
Fix #529
2017-01-02Fix broken linksPeter Heatwole
2016-12-02Fix minor typoIsmail
2016-11-26Clarify test discovery docs.Ana Vojnovic
2016-10-20Remove example of obsolete pytest.main usage with stringBruno Oliveira
2016-09-15Update goodpractices.rstSkylar Downes
2016-09-15clarified purpose of `pip install -e` commandSkylar Downes
ref #1937
2016-08-17Support [tool:pytest] in setup.cfg filesBruno Oliveira
Also deprecate [pytest] usage in setup.cfg files Fix #567
2016-06-26Remove deprecated cmd optionsRedBeardCode
Fixes #1657
2016-06-21Introduce pytest command as recommended entry pointDave Hunt
Fixes #1629
2016-03-20Add Jenkins xUnit Plugin link to docOmar Kohl
2016-01-20Fix practise -> practice typo in documentationLoïc Estève