Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd22e9a3 authored by Adam Tauber's avatar Adam Tauber
Browse files

[fix] pep8 compatibilty

parent 6a158ca2
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -16,7 +16,10 @@ update_dev_packages() {

pep8_check() {
    echo '[!] Running pep8 check'
    pep8 --max-line-length=120 "$SEARX_DIR" "$BASE_DIR/tests"
    # ignored rules:
    #  E402 module level import not at top of file
    #  W503 line break before binary operator
    pep8 --max-line-length=120 --ignore "E402,W503" "$SEARX_DIR" "$BASE_DIR/tests"
}

unit_tests() {
+1 −1
Original line number Diff line number Diff line
babel==2.2.0
flake8==2.5.1
mock==1.0.1
nose2[coverage-plugin]
pep8==1.7.0
plone.testing==4.0.15
robotframework-selenium2library==1.7.4
robotsuite==1.7.0
+2 −4
Original line number Diff line number Diff line
@@ -114,8 +114,7 @@ def dbpedia(query):
    # dbpedia autocompleter, no HTTPS
    autocomplete_url = 'http://lookup.dbpedia.org/api/search.asmx/KeywordSearch?'

    response = get(autocomplete_url
                   + urlencode(dict(QueryString=query)))
    response = get(autocomplete_url + urlencode(dict(QueryString=query)))

    results = []

@@ -141,8 +140,7 @@ def google(query):
    # google autocompleter
    autocomplete_url = 'https://suggestqueries.google.com/complete/search?client=toolbar&'

    response = get(autocomplete_url
                   + urlencode(dict(q=query)))
    response = get(autocomplete_url + urlencode(dict(q=query)))

    results = []

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+4 −4

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

Loading