Compare commits

..
3 Commits
Author SHA1 Message Date
Itai Bohadana d67479b1fb fix: logs 2026-08-18 16:55:56 +03:00
rcarrigaandItai Bohadana 04d3f707b8 docs: remove nvim-treesitter ref 2026-08-18 16:52:15 +03:00
rcarrigaandItai Bohadana c0c7dc9851 feat: remove plenary 2026-08-18 16:52:15 +03:00
2 changed files with 5 additions and 9 deletions
-5
View File
@@ -110,15 +110,10 @@ end
local function scan_test_function_pattern(runner, config, python_command) local function scan_test_function_pattern(runner, config, python_command)
local test_function_pattern = "^test" local test_function_pattern = "^test"
if runner == "pytest" and config.pytest_discovery then if runner == "pytest" and config.pytest_discovery then
<<<<<<< HEAD
local cmd = vim local cmd = vim
.iter({ python_command, M.get_script_path(), "--pytest-extract-test-name-template" }) .iter({ python_command, M.get_script_path(), "--pytest-extract-test-name-template" })
:flatten() :flatten()
:totable() :totable()
=======
local cmd = vim.iter({ python_command, M.get_script_path(), "--pytest-extract-test-name-template" }):flatten()
:totable()
>>>>>>> 51c453d (feat: remove plenary)
local _, data = lib.process.run(cmd, { stdout = true, stderr = true }) local _, data = lib.process.run(cmd, { stdout = true, stderr = true })
for line in vim.gsplit(data.stdout, "\n", true) do for line in vim.gsplit(data.stdout, "\n", true) do
+1
View File
@@ -24,6 +24,7 @@ SOCKET_ROOT_DIR = Path("/tmp/neotest-python")
python_socket_path = ( python_socket_path = (
SOCKET_ROOT_DIR / hashlib.sha1(sys.executable.encode()).digest().hex() SOCKET_ROOT_DIR / hashlib.sha1(sys.executable.encode()).digest().hex()
) )
python_socket_path.parent.mkdir(exist_ok=True,parents=True)
logger = logging.getLogger('neotest-python') logger = logging.getLogger('neotest-python')
logger.addHandler(WatchedFileHandler(filename=python_socket_path.with_suffix('.log'))) logger.addHandler(WatchedFileHandler(filename=python_socket_path.with_suffix('.log')))