diff --git a/src/tox.ini b/src/tox.ini index 7058b10c651..c1898e7a4e4 100644 --- a/src/tox.ini +++ b/src/tox.ini @@ -101,7 +101,37 @@ description = # The patterns are in .relint.yml deps = relint whitelist_externals = find -commands = find {posargs:{toxinidir}/sage/} -exec relint -c {toxinidir}/.relint.yml \{\} + +commands = find {posargs:{toxinidir}/sage/} \ + -name "*#*" -prune -o \ + -name "*.a" -prune -o \ + -name "*.bak" -prune -o \ + -name "*.bz2" -prune -o \ + -name "*.dia" -prune -o \ + -name "*.gz" -prune -o \ + -name "*.ico" -prune -o \ + -name "*.inv" -prune -o \ + -name "*.JPEG" -prune -o \ + -name "*.jpeg" -prune -o \ + -name "*.JPG" -prune -o \ + -name "*.jpg" -prune -o \ + -name "*.log" -prune -o \ + -name "*.o" -prune -o \ + -name "*.orig" -prune -o \ + -name "*.PDF" -prune -o \ + -name "*.pdf" -prune -o \ + -name "*.PNG" -prune -o \ + -name "*.png" -prune -o \ + -name "*.pyc" -prune -o \ + -name "*.so" -prune -o \ + -name "*.sobj" -prune -o \ + -name "*.sws" -prune -o \ + -name "*.tar" -prune -o \ + -name "*.tgz" -prune -o \ + -name "*.xz" -prune -o \ + -name "*.zip" -prune -o \ + -name "*~*" -prune -o \ + -name ".DS_Store" -prune -o \ + -exec relint -c {toxinidir}/.relint.yml \{\} + [testenv:codespell] description = @@ -109,10 +139,14 @@ description = # https://pypi.org/project/codespell/ deps = codespell commands = codespell \ - --skip="*.png,*.jpg,*.JPG,*.inv,*.dia,*.pdf,*.ico,*#*,*~*,*.bak,*.orig,*.log,*.sobj,*.tar,*.gz,*.pyc,*.o,*.sws,*.so,*.a,.DS_Store" \ - --skip="doc/ca,doc/de,doc/es,doc/hu,doc/ja,doc/ru,doc/fr,doc/it,doc/pt,doc/tr" \ - --skip="src/doc/ca,src/doc/de,src/doc/es,src/doc/hu,src/doc/ja,src/doc/ru,src/doc/fr,src/doc/it,src/doc/pt,src/doc/tr" \ - --skip=".git,.tox,worktree*,dist,upstream,logs,local,cythonized,scripts-3,autom4te.cache,tmp,lib.*,*.egg-info" \ + --skip="*#*,*.a,*.bak,*.bz2,*.dia,*.gz,*.ico,*.inv,*.JPEG,*.jpeg" \ + --skip="*.JPG,*.jpg,*.log,*.o,*.orig,*.PDF,*.pdf,*.PNG,*.png,*.pyc" \ + --skip="*.so,*.sobj,*.sws,*.tar,*.tgz,*.xz,*.zip,*~*,.DS_Store" \ + --skip="doc/ca,doc/de,doc/es,doc/fr,doc/hu,doc/it,doc/ja,doc/pt,doc/ru,doc/tr" \ + --skip="src/doc/ca,src/doc/de,src/doc/es,src/doc/fr,src/doc/hu" \ + --skip="src/doc/it,src/doc/ja,src/doc/pt,src/doc/ru,src/doc/tr" \ + --skip=".git,.tox,autom4te.cache,cythonized,dist,lib.*,local" \ + --skip="logs,scripts-3,tmp,upstream,worktree*,*.egg-info" \ --dictionary=- \ --dictionary={toxinidir}/.codespell-dictionary.txt \ --ignore-words={toxinidir}/.codespell-ignore.txt \