diff --git a/bukuserver/requirements.txt b/bukuserver/requirements.txt index 12ebb889..7382ce04 100644 --- a/bukuserver/requirements.txt +++ b/bukuserver/requirements.txt @@ -3,6 +3,6 @@ Flask-Admin>=1.6.0 Flask-API>=3.0.post1 Flask-Bootstrap>=3.3.7.1 flask-paginate>=2022.1.8 -flask-reverse-proxy-fix @ https://github.com/rachmadaniHaryono/flask-reverse-proxy-fix/archive/refs/tags/v0.2.2rc1.zip +flask-reverse-proxy-fix @ https://github.com/rachmadaniHaryono/flask-reverse-proxy-fix/archive/refs/tags/v0.2.3.zip Flask-WTF>=1.0.1 Flask>=2.2.2 diff --git a/tests/.pylintrc b/tests/.pylintrc index 2de05597..327a12ae 100644 --- a/tests/.pylintrc +++ b/tests/.pylintrc @@ -16,7 +16,6 @@ disable= logging-format-interpolation, lost-exception, missing-docstring, - no-self-use, pointless-statement, protected-access, redefined-argument-from-local, diff --git a/tests/cassettes/test_buku/test_network_handler_with_url[http---www.vim.org-scripts-script.php-script_id=4641-exp_res7].yaml b/tests/cassettes/test_buku/test_network_handler_with_url[http---www.vim.org-scripts-script.php~-exp_res7].yaml similarity index 100% rename from tests/cassettes/test_buku/test_network_handler_with_url[http---www.vim.org-scripts-script.php-script_id=4641-exp_res7].yaml rename to tests/cassettes/test_buku/test_network_handler_with_url[http---www.vim.org-scripts-script.php~-exp_res7].yaml diff --git a/tests/cassettes/test_buku/test_network_handler_with_url[https---www.google.ru-search-newwindow=1&safe=off&q=xkbcomp+alt+gr&oq=xkbcomp+alt+gr&gs_l=serp.3..33i21.28976559.28977886.0.28978017.6.6.0.0.0.0.167.668.0j5.5.0....0...1c.1.64.serp..1.2.311.06cSKPTLo18-exp_res6].yaml b/tests/cassettes/test_buku/test_network_handler_with_url[https---www.google.ru-search~-exp_res6].yaml similarity index 100% rename from tests/cassettes/test_buku/test_network_handler_with_url[https---www.google.ru-search-newwindow=1&safe=off&q=xkbcomp+alt+gr&oq=xkbcomp+alt+gr&gs_l=serp.3..33i21.28976559.28977886.0.28978017.6.6.0.0.0.0.167.668.0j5.5.0....0...1c.1.64.serp..1.2.311.06cSKPTLo18-exp_res6].yaml rename to tests/cassettes/test_buku/test_network_handler_with_url[https---www.google.ru-search~-exp_res6].yaml diff --git a/tests/test_buku.py b/tests/test_buku.py index 2641a10e..a415611e 100644 --- a/tests/test_buku.py +++ b/tests/test_buku.py @@ -591,6 +591,7 @@ def test_sigint_handler(capsys): ), ], ], + ids=lambda s: (s.split('?')[0] + '~' if isinstance(s, str) and '?' in s else None), ) def test_network_handler_with_url(url, exp_res): """test func.""" diff --git a/tox.ini b/tox.ini index 2415f1e2..a9dc2fcd 100644 --- a/tox.ini +++ b/tox.ini @@ -3,6 +3,10 @@ envlist = python37,python38,python39,python310,pylint,flake8 [flake8] max-line-length = 139 +exclude = + .tox + build + venv ignore = # C901 func is too complex C901, @@ -53,10 +57,8 @@ commands = [testenv:pylint] deps = pylint -whitelist_externals = - /usr/bin/find commands = - find . -iname "*.py" -not -path "./.tox/*" -not -path "./build/*" -exec pylint --rcfile tests/.pylintrc \{\} + + pylint . --rc-file tests/.pylintrc --recursive yes --ignore-paths .tox/,build/,venv/ [testenv:flake8] deps = flake8