Skip to content

Conversation

@utapyngo
Copy link
Owner

Add Python 3.13 support

@utapyngo utapyngo requested a review from Copilot April 19, 2025 12:01
@utapyngo utapyngo self-assigned this Apr 19, 2025
@codecov
Copy link

codecov bot commented Apr 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (6a83767) to head (30a55a0).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master       #19   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           99        93    -6     
  Branches        25        26    +1     
=========================================
- Hits            99        93    -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

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 PR migrates the project’s linting and formatting tools from black and flake8 to ruff while adding support for Python 3.13. Key changes include:

  • Switching from black/flake8 to ruff in configuration files and GitHub Actions.
  • Updating test files and internal type hints to accommodate newer Python versions.
  • Refactoring file handling in setup.py to use pathlib.

Reviewed Changes

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

Show a summary per file
File Description
tests/test_unordered.py Updated imports, type hints, and parameter styles for pytest tests.
setup.py Refactored file reading using pathlib instead of codecs.
pytest_unordered/init.py Adjusted type annotations and error messages in UnorderedList.
pyproject.toml Configured ruff settings to replace black.
CHANGELOG.md Updated changelog to reflect tooling changes and Python 3.13 support.
.pre-commit-config.yaml Added pre-commit hooks for ruff and mypy.
.github/workflows/test.yml Replaced black and flake8 CI steps with pre-commit based linting.
Files not reviewed (1)
  • tox.ini: Language not supported

@utapyngo utapyngo marked this pull request as ready for review April 19, 2025 12:11
@utapyngo utapyngo requested a review from Mogost April 19, 2025 12:12
@utapyngo utapyngo merged commit f2f7f81 into master Apr 23, 2025
80 checks passed
@utapyngo utapyngo deleted the ruff branch April 23, 2025 06:15
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.

2 participants