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

python: update required versions of black and mypy #5808

Merged
merged 2 commits into from
Mar 20, 2024

Commits on Mar 20, 2024

  1. ci: update black requirement from 22.8.0 to 24.3.0

    Problem: Github dependabot notified this project of a security
    issue with black 22.8.0 and recommends updating to 24.3.0.
    
    Update black requirement to 24.3.0 and commit all formatting changes
    as a result.
    
    Also make the following other required changes to get this version
    of black to work:
    
    Ensure the python linting action runs on ubuntu-latest in github,
    otherwise this version of black is not found by pip.
    
    Update pyproject.toml to remove tool.black.profile, which the newer
    black doesn't understand or support.
    
    Update pyproject.toml to remove tool.black.exclude, which wasn't
    being used under pre-commit anyway. Replace with force-exclude,
    which applies the exclusion pattern even if the targets are passed
    as a list of files as is done with pre-commit.
    grondo committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    a0bce09 View commit details
    Browse the repository at this point in the history
  2. mypy: update to v1.9.0

    Problem: The version of mypy pinned in scripts/requirements-dev.txt
    is too old for the github ubuntu-latest runner.
    
    Update to the latest mypy version 1.9.0.
    grondo committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    617055a View commit details
    Browse the repository at this point in the history