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

Add the ruff linter #424

Merged
merged 4 commits into from
May 6, 2024
Merged

Add the ruff linter #424

merged 4 commits into from
May 6, 2024

Commits on May 6, 2024

  1. Mypy: Disallow blanket 'type: ignore'

    A specific Mypy rule must accompany any 'type: ignore' directive.
    jherland committed May 6, 2024
    Configuration menu
    Copy the full SHA
    0ce0f16 View commit details
    Browse the repository at this point in the history
  2. pyproject.toml: Add ruff as a lint dependency

    For now, run it with `ruff check .` - we will soon replace `pylint` with
    `ruff` in the `lint` Nox target.
    jherland committed May 6, 2024
    Configuration menu
    Copy the full SHA
    1dbf3e8 View commit details
    Browse the repository at this point in the history
  3. Add minimal ruff configuration

    This configures ruff so that the default set of checks pass on the
    current state of our project. A couple of ignores are needed, along
    with excluding one file which is in a non-UTF8 charset.
    jherland committed May 6, 2024
    Configuration menu
    Copy the full SHA
    9f250dc View commit details
    Browse the repository at this point in the history
  4. noxfile.py: Add 'ruff check .' to 'lint' target

    Don't replace pylint just yet...
    jherland committed May 6, 2024
    Configuration menu
    Copy the full SHA
    a6b12cd View commit details
    Browse the repository at this point in the history