Skip to content

Python tooling #760

Closed
Closed

Description

@pmbrull

Let's have a quick round of improvements in the Python tooling.

A first action would be to double-check the CI process to also add black to standardize formatting.

We can also take the chance to discuss the addition of pre-commit hooks, which really help speed up the development. Some interesting tooling to add could be:

  • flake8 -> first fast linting layer, so that we do not only rely on pylint's CI run
  • black -> to make sure we only commit correctly formatted code
  • isort -> to standardise imports directly at development time, instead of having to manually fix them when pylint cries.

From a personal experience, having different layers of quality checks and enforcements are a huge improvement in achieving a standardised codebase, especially taking into consideration one that has multiple sources of development.

Currently working on this.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions