Skip to content

ci,build: Add flake8, black, isort (and wire into CI)#42

Merged
twmr merged 12 commits intotwmr:masterfrom
tony:black-flake8-isort
Sep 4, 2022
Merged

ci,build: Add flake8, black, isort (and wire into CI)#42
twmr merged 12 commits intotwmr:masterfrom
tony:black-flake8-isort

Conversation

@tony
Copy link
Copy Markdown
Contributor

@tony tony commented Sep 3, 2022

Requires #41 (pyproject.toml)

Changes

  • Add [lint] (pip install -e '.[lint]') for flake8, isort, black

    This assures that normal packaging isn't bloated, but the dependencies can still be installed by developers

  • Add 3 lint tools

    • flake8: python linting rules
    • black: formatting
    • isort: import order
  • Lint configurations

    The configurations are stock, except isort and flake8 both have black profiles (docs)

  • CI

    • tests: Add lint tools to test workflow
    • tests and pypi upload: actions/setup-python

@tony tony force-pushed the black-flake8-isort branch 4 times, most recently from 4322934 to 0c10360 Compare September 3, 2022 19:40
@tony tony force-pushed the black-flake8-isort branch from 0c10360 to 4f81f62 Compare September 3, 2022 19:41
@tony tony force-pushed the black-flake8-isort branch from 4f81f62 to 6b9c2de Compare September 3, 2022 19:48
@twmr
Copy link
Copy Markdown
Owner

twmr commented Sep 4, 2022

Thx a lot for that! I wanted to add a black/isort CI setup long ago!

@twmr twmr merged commit 110a0cd into twmr:master Sep 4, 2022
@tony tony deleted the black-flake8-isort branch September 4, 2022 12:24
@tony
Copy link
Copy Markdown
Contributor Author

tony commented Sep 4, 2022

@Thisch This is a nice one!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants