Skip to content

Update PyAmber formatter / linter to use pyproject.toml #3957

@Xiao-zhen-Liu

Description

@Xiao-zhen-Liu

Task Summary

Currently in PyAmber, Black (formatter) does not have a config , and we would have to rely on manual adjustments for formatting line lengths to comply with our custom flake8 rule of max-length=88. Having a black config can help us automatically adjust line lengths.

Black configs can only be set using pyproject.toml, and flake8 config can also be set in this file. As mentioned in #3912, for unified management, we we want to let PyAmber also use pyproject.toml for setting black and flake8 configurations.

Priority

P3 – Low

Task Type

  • Code Implementation
  • Documentation
  • Refactor / Cleanup
  • Testing / QA
  • DevOps / Deployment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagePending for triaging

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions