lang/python: add additional checks
This commit is contained in:
parent
3ebdc513f8
commit
00e2f2cc6f
1 changed files with 24 additions and 0 deletions
|
@ -20,6 +20,30 @@
|
||||||
(unless (executable-find "conda")
|
(unless (executable-find "conda")
|
||||||
(warn! "Couldn't find conda in your PATH")))
|
(warn! "Couldn't find conda in your PATH")))
|
||||||
|
|
||||||
|
(when (featurep! +cython)
|
||||||
|
(unless (executable-find "cython")
|
||||||
|
(warn! "Couldn't find cython. cython-mode will not work.")))
|
||||||
|
|
||||||
(when (featurep! +ipython)
|
(when (featurep! +ipython)
|
||||||
(unless (executable-find "ipython")
|
(unless (executable-find "ipython")
|
||||||
(warn! "Couldn't find ipython in your PATH")))
|
(warn! "Couldn't find ipython in your PATH")))
|
||||||
|
|
||||||
|
(if (and (featurep! :editor format)
|
||||||
|
(not (executable-find "black")))
|
||||||
|
(warn! "Couldn't find black. Code formatting will not work."))
|
||||||
|
|
||||||
|
(if (not (executable-find "pytest"))
|
||||||
|
(warn! "Couldn't find pytest. Running tests through pytest will not work."))
|
||||||
|
|
||||||
|
(if (not (executable-find "nosetests"))
|
||||||
|
(warn! "Couldn't find nosetests. Running tests through nose will not work."))
|
||||||
|
|
||||||
|
(if (not (executable-find "pipenv"))
|
||||||
|
(warn! "Couldn't find pipenv. pipenv support will not work."))
|
||||||
|
|
||||||
|
(if (not (executable-find "isort"))
|
||||||
|
(warn! "Couldn't find isort. Import sorting will not work."))
|
||||||
|
|
||||||
|
(if (and (featurep! :editor format)
|
||||||
|
(not (executable-find "pyflakes")))
|
||||||
|
(warn! "Couldn't find pyflakes. Import management will not work."))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue