Skip to content

Add pytest config to pyproject.toml#181

Merged
simon-hirsch merged 3 commits intomainfrom
pytest-config
Mar 1, 2026
Merged

Add pytest config to pyproject.toml#181
simon-hirsch merged 3 commits intomainfrom
pytest-config

Conversation

@BerriJ
Copy link
Collaborator

@BerriJ BerriJ commented Feb 4, 2026

This pull request introduces configuration settings for running tests with pytest. The main change is the addition of a [tool.pytest.ini_options] section to the pyproject.toml file, which specifies test discovery paths, the Python path, and additional pytest options.

Testing configuration:

  • Added a [tool.pytest.ini_options] section to pyproject.toml to configure pytest, setting testpaths to ["tests"], pythonpath to ["src"], and addopts to -v --tb=short.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds pytest configuration to pyproject.toml to standardize test execution settings and includes automated code formatting improvements. The pytest configuration specifies test discovery paths, Python path settings, and default command-line options for running tests.

Changes:

  • Added [tool.pytest.ini_options] section to pyproject.toml with testpaths, pythonpath, and addopts configurations
  • Applied automated code formatting fixes to remove unnecessary line breaks in two source files

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pyproject.toml Added pytest configuration section with test paths, Python path, and default command-line options
src/ondil/estimators/online_mvdistreg.py Removed unnecessary line breaks in method chaining for improved code readability (automated ruff formatting)
src/ondil/base/distribution.py Removed unnecessary line break in method chaining for consistency with similar code patterns (automated ruff formatting)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@simon-hirsch simon-hirsch merged commit cb4d427 into main Mar 1, 2026
25 checks passed
@simon-hirsch simon-hirsch deleted the pytest-config branch March 1, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants