feat: custom python command

See #14
This commit is contained in:
Rónán Carrigan
2022-08-21 21:28:16 +01:00
parent 20df51e06f
commit c76e25df65
3 changed files with 34 additions and 7 deletions

View File

@@ -26,7 +26,12 @@ require("neotest").setup({
-- Runner to use. Will use pytest if available by default.
-- Can be a function to return dynamic value.
runner = "pytest",
-- Custom python path for the runner.
-- Can be a string or a list of strings.
-- Can also be a function to return dynamic value.
-- If not provided, the path will be inferred by checking for
-- virtual envs in the local directory and for Pipenev/Poetry configs
python = ".venv/bin/python"
-- Returns if a given file path is a test file.
-- NB: This function is called a lot so don't perform any heavy tasks within it.
is_test_file = function(file_path)