Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(mypy): switch to pyproject.toml configuration #2233

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stegayet
Copy link
Contributor

@stegayet stegayet commented Jan 27, 2025

Towards #2232.

Description

This commit switches mypy configuration from setup.cfg to pyproject.toml.

How this has been tested?

  • pyproject.toml configuration is correctly read and same as before, cf. mypy -vvv . output.
  • pre-commit works as before.
  • CI jobs are successful.

This commit switches `mypy` configuration from `setup.cfg` to `pyproject.toml`.

How this has been tested?

- `pyproject.toml` configuration is correctly read, cf. `mypy -vvv .` output.
- pre-commit works as before.
@@ -142,7 +142,7 @@ commands =
pydocstyle {toxinidir}/kombu

[testenv:mypy]
commands = python -m mypy --config-file setup.cfg
commands = python -m mypy
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is no need to specify config-file CLI option as mypy automatically searches for configuration file.

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.50%. Comparing base (a0175b0) to head (a002e51).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2233   +/-   ##
=======================================
  Coverage   81.50%   81.50%           
=======================================
  Files          77       77           
  Lines        9524     9524           
  Branches     1152     1152           
=======================================
  Hits         7763     7763           
  Misses       1569     1569           
  Partials      192      192           

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

@auvipy auvipy self-requested a review January 28, 2025 10:39
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.

1 participant