lint: Invalid escape sequences

This commit is contained in:
Alexandre Aubin 2021-10-05 12:49:33 +02:00
parent 61ec02c97c
commit b0e8a58b24
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class AppDiagnoser(Diagnoser):
for deprecated_helper in deprecated_helpers: for deprecated_helper in deprecated_helpers:
if ( if (
os.system( os.system(
f"grep -hr '{deprecated_helper}' {app['setting_path']}/scripts/ | grep -v -q '^\s*#'" f"grep -hr '{deprecated_helper}' {app['setting_path']}/scripts/ | grep -v -q '^\\s*#'"
) )
== 0 == 0
): ):

View file

@ -9,7 +9,7 @@ deps =
py37-mypy: mypy >= 0.900 py37-mypy: mypy >= 0.900
commands = commands =
py37-lint: flake8 src doc data tests --ignore E402,E501,E203,W503 --exclude src/yunohost/vendor py37-lint: flake8 src doc data tests --ignore E402,E501,E203,W503 --exclude src/yunohost/vendor
py37-invalidcode: flake8 src data --exclude src/yunohost/tests,src/yunohost/vendor --select F,E722 py37-invalidcode: flake8 src data --exclude src/yunohost/tests,src/yunohost/vendor --select F,E722,W605
py37-black-check: black --check --diff src doc data tests py37-black-check: black --check --diff src doc data tests
py37-black-run: black src doc data tests py37-black-run: black src doc data tests
py37-mypy: mypy --ignore-missing-import --install-types --non-interactive --follow-imports silent src/yunohost/ --exclude (acme_tiny|data_migrations) py37-mypy: mypy --ignore-missing-import --install-types --non-interactive --follow-imports silent src/yunohost/ --exclude (acme_tiny|data_migrations)