cov-test-1212313

Testing GitHub workflow & codecov badge generation.

Overview

This is a simple Python package that provides basic mathematical operations. Currently, it includes an add2() function that adds 2 to any given number.

Installation

pip install -e .

For development dependencies:

pip install -e ".[dev]"

Usage

from testmodule import add2

result = add2(5)
print(result)  # Output: 7

Development

This project uses:

  • pytest for testing

  • ruff for linting

  • sphinx for documentation

  • nox for task automation

Running Tests

# Run tests with coverage
nox -s tests

# Or directly with pytest
pytest --cov=testmodule

Linting

# Run ruff linting
nox -s lint

# Or directly with ruff
ruff check .

Building Documentation

# Build documentation
nox -s docs

# Documentation will be in docs/_build/html/

License

This project is licensed under the MIT License - see the LICENSE file for details.