mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/python: reformat checks to prefer unless
This commit is contained in:
@ -28,16 +28,16 @@
|
|||||||
(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 (not (executable-find "pytest"))
|
(unless (executable-find "pytest")
|
||||||
(warn! "Couldn't find pytest. Running tests through pytest will not work."))
|
(warn! "Couldn't find pytest. Running tests through pytest will not work."))
|
||||||
|
|
||||||
(if (not (executable-find "nosetests"))
|
(unless (executable-find "nosetests")
|
||||||
(warn! "Couldn't find nosetests. Running tests through nose will not work."))
|
(warn! "Couldn't find nosetests. Running tests through nose will not work."))
|
||||||
|
|
||||||
(if (not (executable-find "pipenv"))
|
(unless (executable-find "pipenv")
|
||||||
(warn! "Couldn't find pipenv. pipenv support will not work."))
|
(warn! "Couldn't find pipenv. pipenv support will not work."))
|
||||||
|
|
||||||
(if (not (executable-find "isort"))
|
(unless (executable-find "isort")
|
||||||
(warn! "Couldn't find isort. Import sorting will not work."))
|
(warn! "Couldn't find isort. Import sorting will not work."))
|
||||||
|
|
||||||
(when (featurep! :editor format)
|
(when (featurep! :editor format)
|
||||||
|
Reference in New Issue
Block a user