https://github.com/chris-santiago/cookie

Cookiecutter template

https://github.com/chris-santiago/cookie

Science Score: 23.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.7%) to scientific vocabulary

Keywords

black cookiecutter nox pdm pyright pytest python ruff

Keywords from Contributors

transformers
Last synced: 5 months ago · JSON representation

Repository

Cookiecutter template

Basic Info
  • Host: GitHub
  • Owner: chris-santiago
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 68.4 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 1
  • Releases: 2
Topics
black cookiecutter nox pdm pyright pytest python ruff
Created over 4 years ago · Last pushed over 1 year ago
Metadata Files
Readme

README.md

Cookiecutter Template

Cookiecutter is command-line utility that creates projects from cookiecutters (project templates), e.g. creating a Python package project from a Python package project template.

PDM

This cookie assumes that you've installed PDM via these instructions

The post_gen_project.sh hook can be modified to install PDM in virtual environment via pip, if desired (though not recommended).

Included Tools

| Function | Tool | Link | |----------------------------------|---------------------|----------------------------------------------| | Dependency management | PDM | https://pdm.fming.dev/latest/ | | Documentation | MkDocs | https://www.mkdocs.org/ | | Documentation: theme | Material for MkDocs | https://squidfunk.github.io/mkdocs-material/ | | Documentation: auto docstrings | mkdocstrings-python | https://mkdocstrings.github.io/python/ | | Automated testing | Nox | https://nox.thea.codes/en/stable/index.html | | Testing | pytest | https://docs.pytest.org/en/7.3.x/ | | Linting | ruff | https://docs.astral.sh/ruff/ | | Type checking | Pyright | https://microsoft.github.io/pyright/#/ | | Formatting | ruff | https://docs.astral.sh/ruff/ | | Automated QA | pre-commit | https://pre-commit.com/ | | QA | isort | https://pycqa.github.io/isort/ | | QA | check-manifest | https://github.com/mgedmin/check-manifest | | Linting | SQLFluff | https://www.sqlfluff.com/ | | Documentation: Build and publish | GitHub Actions | https://docs.github.com/en/actions | | PyPI: Publish | GitHub Actions | https://docs.github.com/en/actions |

Getting Started

Using a Python environment with cookiecutter installed, run:

cookiecutter https://github.cloud.capitalone.com/lno127/cookie.git

and complete the prompts.

bash cd <your project dir> conda env create -f environment.yml conda activate <your env name> pdm install git init pre-commit install

~~This cookie executes a post-generation script (hooks/post_gen_project.sh) that will:~~

~~1. Create a virtual environment via Conda 2. Install all development dependencies in your virtual environment 3. Install your project (editable) in your virtual environment 4. Initialize a git repo in your new project directory 5. Install pre-commit in your repo~~

PDM Quickstart

As installed via this cookie, PDM will automatically detect the Conda virtual environment and operate within. See Working with Virtual Environments for other options.

Here are a few commands to get you started. For much more, see the CLI Reference or Manage Dependencies guide.

Add a required dependency

pdm add <package>

Example: pdm add numpy

Add a development dependency

pdm add -d <package>

Example: pdm add -d flake8

Add a development dependency into a specific group

pdm add -dG <group name> <package>

Example: pdm add -dG qa flake8

List Dependencies

pdm list

List Dependencies as Graph

pdm list --graph

Export Dependencies

pdm export -o requirements.txt

Owner

  • Name: Chris Santiago
  • Login: chris-santiago
  • Kind: user

GitHub Events

Total
  • Pull request event: 2
Last Year
  • Pull request event: 2

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 40
  • Total Committers: 2
  • Avg Commits per committer: 20.0
  • Development Distribution Score (DDS): 0.05
Past Year
  • Commits: 8
  • Committers: 1
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
chris-santiago c****o@g****u 38
Chris Santiago 4****o 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • chris-santiago (3)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

{{cookiecutter.project_slug}}/pyproject.toml pypi
{{cookiecutter.project_slug}}/requirements.txt pypi
{{cookiecutter.project_slug}}/environment.yml pypi