diff options
Diffstat (limited to 'scripts/meson.build')
-rw-r--r-- | scripts/meson.build | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/scripts/meson.build b/scripts/meson.build index f3f347e..5b04f99 100644 --- a/scripts/meson.build +++ b/scripts/meson.build @@ -6,22 +6,20 @@ if get_option('strict') and not meson.is_subproject() pylint = find_program('pylint', required: get_option('tests')) black = find_program('black', required: get_option('tests')) - # Scripts that pass with everything including pylint - scripts = files( - 'benchmark.py', - 'plot.py', - ) + strict_scripts = files('benchmark.py', 'plot.py') + linty_scripts = files('dox_to_sphinx.py') + all_scripts = strict_scripts + linty_scripts if is_variable('black') and black.found() black_opts = ['-l', '79', '-q', '--check'] - test('black', black, args: black_opts + scripts, suite: 'scripts') + test('black', black, args: black_opts + all_scripts, suite: 'scripts') endif if is_variable('flake8') and flake8.found() - test('flake8', flake8, args: scripts, suite: 'scripts') + test('flake8', flake8, args: all_scripts, suite: 'scripts') endif if is_variable('pylint') and pylint.found() - test('pylint', pylint, args: scripts, suite: 'scripts') + test('pylint', pylint, args: strict_scripts, suite: 'scripts') endif endif |