Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
5b1825ba
Commit
5b1825ba
authored
8 years ago
by
Richard van der Hoff
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #951 from matrix-org/rav/flake8
Fix flake8 noise
parents
9c4cf832
05e7e5e9
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.cfg
+2
-4
2 additions, 4 deletions
setup.cfg
synapse/app/__init__.py
+3
-5
3 additions, 5 deletions
synapse/app/__init__.py
with
5 additions
and
9 deletions
setup.cfg
+
2
−
4
View file @
5b1825ba
...
...
@@ -16,7 +16,5 @@ ignore =
[flake8]
max-line-length
=
90
ignore
=
W503 ; W503 requires that binary operators be at the end, not start, of lines. Erik doesn't like it.
[pep8]
max-line-length
=
90
# W503 requires that binary operators be at the end, not start, of lines. Erik doesn't like it.
ignore
=
W503
This diff is collapsed.
Click to expand it.
synapse/app/__init__.py
+
3
−
5
View file @
5b1825ba
...
...
@@ -16,13 +16,11 @@
import
sys
sys
.
dont_write_bytecode
=
True
from
synapse.python_dependencies
import
(
check_requirements
,
MissingRequirementError
)
# NOQA
from
synapse
import
python_dependencies
# noqa: E402
try
:
check_requirements
()
except
MissingRequirementError
as
e
:
python_dependencies
.
check_requirements
()
except
python_dependencies
.
MissingRequirementError
as
e
:
message
=
"
\n
"
.
join
([
"
Missing Requirement: %s
"
%
(
e
.
message
,),
"
To install run:
"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment