Skip to content

Enable Black Code Style #9

@daka1510

Description

@daka1510

Use Black Code Style instead of pycodestyle.

What is the expected feature or enhancement?
Increased development efficiency, because

  • less time is needed to discuss if personal code style preferences do not match
    • pycodestyle leaves room for that
  • code style changes are applied or fixed automatically
    • pycodestyle requires developers to fix identified style issues manually

Inspired from Qiskit/qiskit#6361.

Technical Implementation

  • install black
  • reformat existing code via black folder1 folder 2
  • subsequently fail verification if black --check folder1 folder2 returns a non-zero exit code (to force contributors to adhere to the new code style)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions