Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix a number of flake8 errors #4082

Merged
merged 1 commit into from
Oct 24, 2018
Merged

Fix a number of flake8 errors #4082

merged 1 commit into from
Oct 24, 2018

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Oct 24, 2018

Broadly three things here:

  • disable W504 which seems a bit whacko
  • remove a bunch of as e expressions from exception handlers that don't use them
  • use r"" for strings which include backslashes

Also, we don't use pep8 any more, so we can get rid of the duplicate config
there.

(This will still fail pep8 in synapse/api/filtering.py due to an actual bug which I am actually going to fix in an actual different PR)

Broadly three things here:

* disable W504 which seems a bit whacko
* remove a bunch of `as e` expressions from exception handlers that don't use
  them
* use `r""` for strings which include backslashes

Also, we don't use pep8 any more, so we can get rid of the duplicate config
there.
@richvdh richvdh requested a review from a team October 24, 2018 09:40
@richvdh richvdh merged commit 7328039 into develop Oct 24, 2018
@richvdh richvdh deleted the rav/fix_pep8 branch October 29, 2018 12:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants