{"id":13468849,"url":"https://github.com/sourcery-ai/python-best-practices-cookiecutter","last_synced_at":"2025-04-13T04:58:43.676Z","repository":{"id":38817888,"uuid":"199474812","full_name":"sourcery-ai/python-best-practices-cookiecutter","owner":"sourcery-ai","description":"Python best practices project cookiecutter 🍪","archived":false,"fork":false,"pushed_at":"2023-12-15T18:00:06.000Z","size":16,"stargazers_count":685,"open_issues_count":12,"forks_count":123,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-13T04:58:38.671Z","etag":null,"topics":["best-practices","black","cookiecutter","cookiecutter-template","flake8","isort","mypy","pipenv","pre-commit","pytest","python","python-best-practices"],"latest_commit_sha":null,"homepage":"https://sourcery.ai/blog/python-best-practices/","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/sourcery-ai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-07-29T15:02:31.000Z","updated_at":"2025-04-04T08:28:52.000Z","dependencies_parsed_at":"2023-12-15T19:21:33.061Z","dependency_job_id":"13df236c-f80b-460d-918d-71524b396034","html_url":"https://github.com/sourcery-ai/python-best-practices-cookiecutter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcery-ai%2Fpython-best-practices-cookiecutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcery-ai%2Fpython-best-practices-cookiecutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcery-ai%2Fpython-best-practices-cookiecutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcery-ai%2Fpython-best-practices-cookiecutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcery-ai","download_url":"https://codeload.github.com/sourcery-ai/python-best-practices-cookiecutter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665760,"owners_count":21142123,"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":["best-practices","black","cookiecutter","cookiecutter-template","flake8","isort","mypy","pipenv","pre-commit","pytest","python","python-best-practices"],"created_at":"2024-07-31T15:01:20.343Z","updated_at":"2025-04-13T04:58:43.653Z","avatar_url":"https://github.com/sourcery-ai.png","language":"Python","readme":"# Python Best Practices Cookiecutter\n\nBest practices [cookiecutter](https://github.com/audreyr/cookiecutter) template as described in this [blogpost](https://sourcery.ai/blog/python-best-practices/).\n\n## Features\n- Testing with [pytest](https://docs.pytest.org/en/latest/)\n- Formatting with [black](https://github.com/psf/black)\n- Import sorting with [isort](https://github.com/timothycrosley/isort)\n- Static typing with [mypy](http://mypy-lang.org/)\n- Linting with [flake8](http://flake8.pycqa.org/en/latest/)\n- Git hooks that run all the above with [pre-commit](https://pre-commit.com/)\n- Deployment ready with [Docker](https://docker.com/)\n- Continuous Integration with [GitHub Actions](https://github.com/features/actions)\n\n## Quickstart\n```sh\n# Install pipx if pipenv and cookiecutter are not installed\npython3 -m pip install pipx\npython3 -m pipx ensurepath\n\n# Install pipenv using pipx\npipx install pipenv\n\n# Use cookiecutter to create project from this template\npipx run cookiecutter gh:sourcery-ai/python-best-practices-cookiecutter\n\n# Enter project directory\ncd \u003crepo_name\u003e\n\n# Initialise git repo\ngit init\n\n# Install dependencies\npipenv install --dev\n\n# Setup pre-commit and pre-push hooks\npipenv run pre-commit install -t pre-commit\npipenv run pre-commit install -t pre-push\n```\n","funding_links":[],"categories":["Credits","Python","Python project templates"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcery-ai%2Fpython-best-practices-cookiecutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcery-ai%2Fpython-best-practices-cookiecutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcery-ai%2Fpython-best-practices-cookiecutter/lists"}