Skip to content

Add simplify plugin to linting checks - #1630

Merged
micahellison merged 8 commits into
jrnl-org:developfrom
wren:flake-simplify
Nov 5, 2022
Merged

micahellison merged 8 commits into
jrnl-org:developfrom
wren:flake-simplify

Conversation

@wren

@wren wren commented Oct 30, 2022

Copy link
Copy Markdown
Member

We recently added flakeheaven to our linting checks. This PR adds a flake8-simplify to look for more general issues with code complexity, and provide specific advice on how to fix those issues. Running this locally, we had a few issues already in the codebase, so this PR also fixes those issues so the new checks can start from a neutral state.

Checklist

  • I have read the contributing doc.
  • I have included a link to the relevant issue number.
  • I have checked to ensure there aren't other open pull requests
    for the same issue.
  • I have written new tests for these changes, as needed.

wren added 3 commits November 1, 2022 21:03
Conflicts:
  poetry.lock
  pyproject.toml
Conflicts:
  poetry.lock
  pyproject.toml

@micahellison micahellison left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@micahellison micahellison added test Issues related to tests we need to add build Issues related to the build pipeline labels Nov 5, 2022
@micahellison
micahellison merged commit b508ed6 into jrnl-org:develop Nov 5, 2022
@micahellison
micahellison deleted the flake-simplify branch November 5, 2022 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Issues related to the build pipeline test Issues related to tests we need to add

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants