mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Additionally ignore files in nox virtualenvs and CI artifacts directories
This commit is contained in:
parent
981335a177
commit
cc6fb4662a
1 changed files with 5 additions and 4 deletions
|
@ -58,12 +58,13 @@ class DocTestCase(TestCase):
|
|||
regex = re.compile(r':(?!\\)')
|
||||
key, val = regex.split(line, 1)
|
||||
|
||||
# Don't test man pages, this file,
|
||||
# the tox virtualenv files, the page
|
||||
# that documents to not use ":doc:",
|
||||
# or the doc/conf.py file
|
||||
# Don't test man pages, this file, the tox or nox virtualenv files,
|
||||
# the page that documents to not use ":doc:", the doc/conf.py file
|
||||
# or the artifacts directory on nox CI test runs
|
||||
if 'man' in key \
|
||||
or '.tox/' in key \
|
||||
or '.nox/' in key \
|
||||
or 'artifacts/' in key \
|
||||
or key.endswith('test_doc.py') \
|
||||
or key.endswith(os.sep.join(['doc', 'conf.py'])) \
|
||||
or key.endswith(os.sep.join(['conventions', 'documentation.rst'])) \
|
||||
|
|
Loading…
Add table
Reference in a new issue