{"id":13897204,"url":"https://github.com/nvim-neotest/neotest-python","last_synced_at":"2025-04-04T09:06:59.644Z","repository":{"id":37009649,"uuid":"443890147","full_name":"nvim-neotest/neotest-python","owner":"nvim-neotest","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-02T19:26:48.000Z","size":78,"stargazers_count":152,"open_issues_count":28,"forks_count":47,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T08:09:33.431Z","etag":null,"topics":["lua","neovim","pytest","python","unittest"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nvim-neotest.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-02T23:13:45.000Z","updated_at":"2025-03-26T07:29:05.000Z","dependencies_parsed_at":"2023-11-12T12:21:14.468Z","dependency_job_id":"7646c0d7-f45f-4730-b689-c19ce1b1af92","html_url":"https://github.com/nvim-neotest/neotest-python","commit_stats":{"total_commits":61,"total_committers":15,"mean_commits":4.066666666666666,"dds":0.3770491803278688,"last_synced_commit":"a2861ab3c9a0bf75a56b11835c2bfc8270f5be7e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvim-neotest%2Fneotest-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvim-neotest%2Fneotest-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvim-neotest%2Fneotest-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nvim-neotest%2Fneotest-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nvim-neotest","download_url":"https://codeload.github.com/nvim-neotest/neotest-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149500,"owners_count":20891954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lua","neovim","pytest","python","unittest"],"created_at":"2024-08-06T18:03:25.465Z","updated_at":"2025-04-04T09:06:59.625Z","avatar_url":"https://github.com/nvim-neotest.png","language":"Python","readme":"# neotest-python\n\n[Neotest](https://github.com/rcarriga/neotest) adapter for python.\nSupports Pytest and unittest test files.\n\nRequires [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) and the parser for python.\n\n```lua\nrequire(\"neotest\").setup({\n  adapters = {\n    require(\"neotest-python\")\n  }\n})\n```\n\nYou can optionally supply configuration settings:\n```lua\nrequire(\"neotest\").setup({\n  adapters = {\n    require(\"neotest-python\")({\n        -- Extra arguments for nvim-dap configuration\n        -- See https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for values\n        dap = { justMyCode = false },\n        -- Command line arguments for runner\n        -- Can also be a function to return dynamic values\n        args = {\"--log-level\", \"DEBUG\"},\n        -- Runner to use. Will use pytest if available by default.\n        -- Can be a function to return dynamic value.\n        runner = \"pytest\",\n        -- Custom python path for the runner.\n        -- Can be a string or a list of strings.\n        -- Can also be a function to return dynamic value.\n        -- If not provided, the path will be inferred by checking for \n        -- virtual envs in the local directory and for Pipenev/Poetry configs\n        python = \".venv/bin/python\",\n        -- Returns if a given file path is a test file.\n        -- NB: This function is called a lot so don't perform any heavy tasks within it.\n        is_test_file = function(file_path)\n          ...\n        end,\n        -- !!EXPERIMENTAL!! Enable shelling out to `pytest` to discover test\n        -- instances for files containing a parametrize mark (default: false)\n        pytest_discover_instances = true,\n    })\n  }\n})\n\n```\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvim-neotest%2Fneotest-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnvim-neotest%2Fneotest-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnvim-neotest%2Fneotest-python/lists"}