<commit_before>.. highlightlang:: python
.. _`goodpractices`:

Good Integration Practices
=================================================

Install package with pip
-------------------------------------------------

For development, we recommend to use virtualenv_ environments and pip_
for installing your application and any dependencies
as well as the ``pytest`` package itself. This ensures your code and
dependencies are isolated from the system Python installation.

First you need to place a ``setup.py`` file in the root of your package with the following minimum content::

    from setuptools import setup, find_packages<commit_msg>Recommend use venv instead of virtualenv <commit_after>.. highlightlang:: python
.. _`goodpractices`:

Good Integration Practices
=================================================

Install package with pip
-------------------------------------------------

For development, we recommend you use venv_ for virtual environments and pip_
for installing your application and any dependencies
as well as the ``pytest`` package itself. This ensures your code and
dependencies are isolated from the system Python installation.

Next, place a ``setup.py`` file in the root of your package with the following minimum content::

    from setuptools import setup, find_packages
{'fraction_non_alphanumeric': 0.1917494270435447, 'fraction_numerical': 0.0, 'mean_word_length': 3.612676056338028, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3480954', 'n_tokens_mistral': 280, 'n_tokens_neox': 266, 'n_words': 148}