Web: Code-cleanup Flake8

Created on 30 Apr 2018  路  8Comments  路  Source: gitcoinco/web

User Story

As a developer, I want a clean code base where flake8 is followed.

Why Is this Needed?

Summary: Better code standard will promote readability and attract new contributors to the project.

Description

Type: STYLING

Current Behavior

flake8 currently fails on the codebase

Expected Behavior

flake8 should pass

Reproduction

Solution

Summary:
Fix linting errors

Definition of Done

  • flake8 should pass the entire codebase
  • integrate flake8 with Travis to take care in further builds

Additional Information

backend frontend

Most helpful comment

I typically make minor adjustments as I'm changing things as well. I just don't want to overwhelm would-be contributors if they have something they're working on in a PR/fork when they try to rebase with the linting changes.

All 8 comments

I agree with this, but due to the amount of open work on the platform, we're intentionally not linting the whole codebase to avoid unnecessary stress for fellow community contributors.

We plan to slowly lint each app as the opportunity presents itself and specifically enforce linting on apps that have already been migrated.

Sure, that makes sense. I'd lint if I touch any files :)

I typically make minor adjustments as I'm changing things as well. I just don't want to overwhelm would-be contributors if they have something they're working on in a PR/fork when they try to rebase with the linting changes.

Did you ever send in a PR @CuriousLearner ?

@kuhnchris Nope. I feel maintainers are inclined towards incremental changes ( which makes sense) fixing these linting errors, so I do not wanted to work on a humongous PR which will be left hanging.

So, I'm not sure if a single PR fixing all this would help 馃し鈥嶁檪

Well, I guess we'll have to ask @danlipert or @owocki for a decision on that.

Cool, let me know if you need a helping hand ;)

Guess that's a no, thanks for offering your help tho @CuriousLearner !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abitrolly picture abitrolly  路  4Comments

uluhonolulu picture uluhonolulu  路  3Comments

jasonrhaas picture jasonrhaas  路  4Comments

wizzfile picture wizzfile  路  3Comments

kuhnchris picture kuhnchris  路  4Comments