Skip to content

Conversation

@goncalossilva
Copy link
Member

This was meant to be a small cleanup of long-deprecated config files (flake8, isort, etc, since replaced by ruff), but I ended up also enabling most Ruff rules and making the associated code changes, streamlining CI workflows, and a few other minor configuration improvements.

Best reviewed commit by commit.

I'll merge this once CI is green to continue iterating based on it, but do please take a look. I'm happy to iterate after the fact.

@goncalossilva goncalossilva requested review from Copilot and lefcha March 31, 2025 00:26
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 cleans up long-deprecated configuration files and streamlines the CI workflows while converting many test functions to use explicit type annotations and updating the project configuration to enable most Ruff rules.

  • Adds type annotations to numerous test functions
  • Updates CI workflows to set up Python and Poetry from version files
  • Refreshes pyproject.toml with updated Python version, description, keywords, and linter settings

Reviewed Changes

Copilot reviewed 23 out of 28 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/utils/test_utils.py Adds type annotations and imports
tests/test_models.py Adds return type hints to test functions
tests/test_http_requests.py Adds return type hints and renames a variable for clarity
tests/test_headers.py Adds return type hints to test functions
tests/test_authentication.py Adds return type hints to test functions
tests/test_api_tasks.py Adds return type hints; renames "filter" to "filter_query" for clarity
tests/test_api_sections.py Adds return type hints to test functions
tests/test_api_projects.py Adds return type hints to test functions
tests/test_api_labels.py Adds return type hints to test functions
tests/test_api_items.py Adds type annotations to helper functions
tests/test_api_comments.py Adds return type hints to test functions
tests/test_api_async.py Adds return type hints to test functions
pyproject.toml Updates project metadata, Python version, and linter configs
.github/workflows/publish.yml Updates CI workflow to use dynamic Python/Poetry versions
.github/workflows/ci.yml Updates CI workflow to use dynamic Python/Poetry versions
Files not reviewed (5)
  • .flake8: Language not supported
  • .github/CODEOWNERS: Language not supported
  • .isort.cfg: Language not supported
  • .poetry-version: Language not supported
  • mypy.ini: Language not supported

@goncalossilva goncalossilva merged commit 768b4f4 into main Mar 31, 2025
1 check passed
@goncalossilva goncalossilva deleted the cleanup-project-setup branch March 31, 2025 00:27
Copy link
Collaborator

@lefcha lefcha left a comment

Choose a reason for hiding this comment

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

All changes look good!

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