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

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

Merged
merged 12 commits into from
Sep 4, 2022

Conversation

tony
Copy link
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
@twmr
Copy link
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
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