semvec/pypi-packages huggingface dataset:
django-sb-codefield 0.4.0
Use codemirror2 widget directly in Django models, forms and admin.
License: MIT
Requires Python: <4.0.0,>=3.10.0
Keywords: Softbutterfly, Django, Migrations

![Community-Project](https://gitlab.com/softbutterfly/open-source/open-source-office/-/raw/master/assets/dynova/dynova-open-source--banner--community-project.png)

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md)

![PyPI - Supported versions](https://img.shields.io/pypi/pyversions/django-sb-codefield)
![PyPI - Package version](https://img.shields.io/pypi/v/django-sb-codefield)
![PyPI - Downloads](https://img.shields.io/pypi/dm/django-sb-codefield)
![PyPI - MIT License](https://img.shields.io/pypi/l/django-sb-codefield)

[![Codacy Badge](https://app.codacy.com/project/badge/Grade/fe5644bd3a114473879a304321a68f3e)](https://app.codacy.com/gl/softbutterfly/django-sb-codefield/dashboard?utm_source=gl&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)

# Django CodeField

Use codemirror2 widget directly in Django models, forms and admin.

## Requirements

- Python 3.10 or higher but lower than 4.0.0
- Django lower than 6.0.0
- django-codemirror2 lower than 1.0.0

## Install

```bash
pip install django-sb-codefield
```

## Usage

Add `codemirror2` and `django_sb_codefield` to your `INSTALLED_APPS` settings

```
INSTALLED_APPS = [
  # ...
  "codemirror2",
  "django_sb_codefield",
]
```

## Docs

- [Ejemplos](https://gitlab.com/softbutterfly/open-source/django-sb-codefield/-/wikis)
- [Wiki](https://gitlab.com/softbutterfly/open-source/django-sb-codefield/-/wikis)

## Changelog

All changes to versions of this library are listed in the [change history](CHANGELOG.md).

## Development

Check out our [contribution guide](CONTRIBUTING.md).

## Contributors

See the list of contributors [here](https://gitlab.com/softbutterfly/open-source/django-sb-codefield/-/graphs/develop).
coverage-sh 0.4.5
A  Coverage.py plugin to measure code coverage of shell scripts from python.
License: MIT
Requires Python: >=3.8
Keywords: bash, coverage, plugin, sh, shell

# Coverage.sh

[![PyPI - Version](https://img.shields.io/pypi/v/coverage-sh?color=blue)](https://pypi.org/project/coverage-sh/)
[![PyPI - Status](https://img.shields.io/pypi/status/coverage-sh)](https://github.com/lackhove/coverage-sh/blob/main/pyproject.toml)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/coverage-sh)](https://github.com/lackhove/coverage-sh/blob/main/pyproject.toml)
[![PyPI - License](https://img.shields.io/pypi/l/coverage-sh)](https://github.com/lackhove/coverage-sh/blob/main/LICENSE.txt)
![Coverage](https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/lackhove/f16009049fe5091e6d750a7bb7b4d68a/raw/covbadge.json)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![Rye](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/mitsuhiko/rye/main/artwork/badge.json)](https://rye-up.com)

A  [Coverage.py](https://github.com/nedbat/coveragepy) plugin to measure code coverage of shell (sh or bash) scripts
executed from python.

## Installation

```shell
pip install coverage-sh
```

## Usage

In your `pyproject.toml`, set

```toml
[tool.coverage.run]
plugins = ["coverage_sh"]
```

and run

```shell
coverage run main.py
coverage combine
coverage html
```

to measure coverage of all shell scripts executed via
the [subprocess](https://docs.python.org/3/library/subprocess.html) module, e.g.:

```python
subprocess.run(["bash", "test.sh"])
```

The resulting coverage is then displayed alongside the coverage of the python files:

![coverage.sh report screenshot](doc/media/screenshot_html-report.png)

## Caveats

The plugin works by patching the `subprocess.Popen` class to set the "ENV" and "BASH_ENV" environment variables before
execution, to source a helper script which enables tracing. This approach comes with a few caveats:

- It will only cover shell scripts that are executed via the subprocess module.
- Only bash and sh are supported

## Cover-Always Mode

When using the subprocess modue is not an option, coverage-sh can operate in "cover-always-mode", which is activated by
setting

```toml
[tool.coverage.coverage_sh]
cover_always = true
```

in the `pyproject.toml`. In this mode, Coverage.sh will not respect the `coverage.start()` and `coverage.stop()` calls
and instead cover every shell script executed after the plugin gets loaded until the main process is finished.
This mode is also incompatible with the popular [pytest-cov](https://github.com/pytest-dev/pytest-cov) but works with
starting pytest from coverage , e.g.:

```bash
coverage run -m pytest arg1 arg2 arg3
```

## License

Licensed under the [MIT License](LICENSE.txt).