mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
Add pyright config files to project root files list (#4321)
Add configuration files for pyright (JSON and TOML) to list of files which identify a project root directory. Update documentation accordingly. Co-authored-by: Andreas Doll <andreas.doll@posteo.de>
This commit is contained in:
@@ -33,6 +33,8 @@ function! ale#python#FindProjectRootIni(buffer) abort
|
||||
\|| filereadable(l:path . '/pylama.ini')
|
||||
\|| filereadable(l:path . '/pylintrc')
|
||||
\|| filereadable(l:path . '/.pylintrc')
|
||||
\|| filereadable(l:path . '/pyrightconfig.json')
|
||||
\|| filereadable(l:path . '/pyrightconfig.toml')
|
||||
\|| filereadable(l:path . '/Pipfile')
|
||||
\|| filereadable(l:path . '/Pipfile.lock')
|
||||
\|| filereadable(l:path . '/poetry.lock')
|
||||
|
||||
@@ -46,6 +46,8 @@ ALE will look for configuration files with the following filenames. >
|
||||
pylama.ini
|
||||
pylintrc
|
||||
.pylintrc
|
||||
pyrightconfig.json
|
||||
pyrightconfig.toml
|
||||
Pipfile
|
||||
Pipfile.lock
|
||||
poetry.lock
|
||||
|
||||
Reference in New Issue
Block a user