All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('markdown', 'pymarkdown')
5 call ale#assert#TearDownLinterTest()
7 Execute(The pymarkdown command callback should return default string):
8 AssertLinter 'pymarkdown', ale#Escape('pymarkdown') . ' scan-stdin'
10 Execute(The pycodestyle command callback should allow options):
11 let g:markdown_pymarkdown_options = '--exclude=test*.py'
13 Execute(The pymarkdown executable should be configurable):
14 let g:ale_markdown_pymarkdown_executable = '~/.local/bin/pymarkdown'
16 AssertLinter '~/.local/bin/pymarkdown',
17 \ ale#Escape('~/.local/bin/pymarkdown') . ' scan-stdin'
19 Execute(Setting executable to 'pipenv' appends 'run pymarkdown'):
20 let g:ale_markdown_pymarkdown_executable = 'path/to/pipenv'
22 AssertLinter 'path/to/pipenv',
23 \ ale#Escape('path/to/pipenv') . ' run pymarkdown scan-stdin'
25 Execute(Pipenv is detected when markdown_pymarkdown_auto_pipenv is set):
26 let g:ale_markdown_pymarkdown_auto_pipenv = 1
27 call ale#test#SetFilename('../test-files/python/pipenv/whatever.py')
29 AssertLinter 'pipenv',
30 \ ale#Escape('pipenv') . ' run pymarkdown scan-stdin'
32 Execute(Setting executable to 'poetry' appends 'run pymarkdown'):
33 let g:ale_markdown_pymarkdown_executable = 'path/to/poetry'
35 AssertLinter 'path/to/poetry',
36 \ ale#Escape('path/to/poetry') . ' run pymarkdown scan-stdin'
38 Execute(Poetry is detected when markdown_pymarkdown_auto_poetry is set):
39 let g:ale_markdown_pymarkdown_auto_poetry = 1
40 call ale#test#SetFilename('../test-files/python/poetry/whatever.py')
42 AssertLinter 'poetry',
43 \ ale#Escape('poetry') . ' run pymarkdown scan-stdin'
45 Execute(uv is detected when markdown_pymarkdown_auto_uv is set):
46 let g:ale_markdown_pymarkdown_auto_uv = 1
47 call ale#test#SetFilename('../test-files/python/uv/whatever.py')
50 \ ale#Escape('uv') . ' run pymarkdown scan-stdin'