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

Format code using black and add pre-commit hooks #137

Merged
merged 3 commits into from
Jun 18, 2018

Commits on Jun 18, 2018

  1. Format code using black (#139)

    This commit formats the majority of pyswarms code using the
    black formatter. This will be our new formatter from this point
    forward.
    
    Signed-off-by: Lester James V. Miranda <[email protected]>
    ljvmiranda921 committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    a863fb8 View commit details
    Browse the repository at this point in the history
  2. Add pre-commit hook configurations (#139)

    This commit adds the .flake8 and pyproject.toml to specify flake8
    and black configuration. In addition, we updated the code to reflect
    the warnings found in flake8.
    
    Signed-off-by: Lester James V. Miranda <[email protected]>
    ljvmiranda921 committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    fbe052d View commit details
    Browse the repository at this point in the history
  3. Mention black in README and CONTRIBUTING (#139)

    In this commit, we explicitly say that we are using black as our
    code formatter.
    
    Signed-off-by: Lester James V. Miranda <[email protected]>
    ljvmiranda921 committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    297a403 View commit details
    Browse the repository at this point in the history