diff options
| author | David Robillard <d@drobilla.net> | 2025-11-13 17:55:05 -0500 |
|---|---|---|
| committer | David Robillard <d@drobilla.net> | 2025-11-13 17:55:05 -0500 |
| commit | ce0361d55707cc84821e693731712e6f81a2a7dc (patch) | |
| tree | 753a386e83365aefb19aebe0dd7029cc051a53a2 /test | |
| parent | 7ae4bb49e19dd3333defaf429e574dd1ded39a16 (diff) | |
| download | lv2-ce0361d55707cc84821e693731712e6f81a2a7dc.tar.xz | |
Suppress pylint warnings in scripts and simplify lint tests
Diffstat (limited to 'test')
| -rw-r--r-- | test/meson.build | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/test/meson.build b/test/meson.build index cddb05a..5a2bcfb 100644 --- a/test/meson.build +++ b/test/meson.build @@ -99,17 +99,12 @@ endif ########## if get_option('lint') - # Scripts that don't pass with pylint - lax_python_scripts = files( + python_scripts = lv2_scripts + files( '../lv2specgen/lv2docgen.py', '../lv2specgen/lv2specgen.py', + '../plugins/literasc.py', ) - # Scripts that pass with everything including pylint - strict_python_scripts = lv2_scripts + files('../plugins/literasc.py') - - all_python_scripts = lax_python_scripts + strict_python_scripts - # Check script formatting black = find_program('black', required: get_option('tests')) if black.found() @@ -117,7 +112,7 @@ if get_option('lint') test( 'black', black, - args: black_opts + all_python_scripts, + args: black_opts + python_scripts, suite: 'scripts', ) endif @@ -125,7 +120,7 @@ if get_option('lint') # Check scripts for errors with flake8 flake8 = find_program('flake8', required: get_option('tests')) if flake8.found() - test('flake8', flake8, args: all_python_scripts, suite: 'scripts') + test('flake8', flake8, args: python_scripts, suite: 'scripts') endif # Check scripts for errors with pylint @@ -139,7 +134,7 @@ if get_option('lint') ) if lint_py.found() - test('pylint', pylint, args: strict_python_scripts, suite: 'scripts') + test('pylint', pylint, args: python_scripts, suite: 'scripts') endif endif endif |