{"id":17834647,"url":"https://github.com/bendog/defaults","last_synced_at":"2026-01-16T00:38:59.796Z","repository":{"id":175742301,"uuid":"654405899","full_name":"bendog/defaults","owner":"bendog","description":"Project Defaults","archived":false,"fork":false,"pushed_at":"2024-07-23T09:33:21.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T03:44:44.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/bendog.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":"2023-06-16T04:05:20.000Z","updated_at":"2024-07-23T09:33:25.000Z","dependencies_parsed_at":"2024-01-03T04:38:26.571Z","dependency_job_id":"5f2acf49-21b8-4a1f-994d-5329e2764eef","html_url":"https://github.com/bendog/defaults","commit_stats":null,"previous_names":["bendog/defaults"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendog%2Fdefaults","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendog%2Fdefaults/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendog%2Fdefaults/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bendog%2Fdefaults/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bendog","download_url":"https://codeload.github.com/bendog/defaults/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246819749,"owners_count":20839094,"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":[],"created_at":"2024-10-27T20:09:14.891Z","updated_at":"2026-01-16T00:38:59.784Z","avatar_url":"https://github.com/bendog.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# defaults\n\nProject Defaults.\n\nInstructions below will show how to append these defaults to your settings files,\nif the files do not exist, these commends will create them.\n\n**It is strongly advised that you check your config files\nafter you append these defaults and remove any duplicated of unnecessary entries.**\n\nThe below instructions assume that you have a `$PROJECT_DIR` envvar set\nand that this repo is a child of that path.\n\nsomething like this in your `~/.zshrc` file\n\n```bash\nexport PROJECT_DIR=\"$HOME/Projects\"\n```\n\nReplace `Projects` with whatever directory name you typically use for your git repo projects.\n\nThe instructions below also assume that you are inside your git repo root.\n\n```bash\n$ tree $PROJECT_DIR\n/Users/bendog/Projects\n├── defaults\n│   ├── .editorconfig\n│   ├── .gitignore\n│   ├── .pre-commit-config.yaml\n│   └── pyproject.toml\n└── your_git_repo\n$ cd $PROJECT_DIR/your_git_repo\n```\n\n## .editorconfig\n\nRead the contents of `defaults/.editorconfg`\nand append it to the end of your `.editorconfig` file.\nThis will prevent losing any settings you currently have.\n\n```shell\ncat \"$PROJECT_DIR/defaults/.editorconfig\" \u003e\u003e .editorconfig\n```\n\n## Pre-commit settings\n\nRead the contents of `defaults/.pre-commit-config.yaml`\nand append it to the end of your `.pre-commit-config.yaml` file.\nThis will prevent losing any settings you currently have.\n\n```shell\ncat \"$PROJECT_DIR/defaults/.pre-commit-config.yaml\" \u003e\u003e .pre-commit-config.yaml\n```\n\npre-commit requires:\n- local installation of \u003chttps://pre-commit.com/\u003e on your system\n- running `pre-commit install` in your repo **after adding the config file**.\n- for python projects, you will need to add sensible settings into your `pyproject.toml` file,\nsee below.\n\n## PyProject.toml for Python Projects\n\n*I strongly advise that you use UV \u003chttps://github.com/astral-sh/uv\u003e\n to initialise your python projects.\n Doing this uv will have already created a `pyproject.toml` file in your repo directory.*  \n**You will want to use `uv init` BEFORE you add these defaults,\n it will not work the other way around.**\n\nRead the contents of `defaults/pyproject.toml`\nand append it to the end of your `pyproject.toml` file.\nThis will prevent losing any settings you currently have.\n\n```shell\ncat \"$PROJECT_DIR/defaults/pyproject.toml\" \u003e\u003e pyproject.toml\n```\n\n## .gitignore\n\nThis is a pretty generic default gitignore file for python projects.\n\n```shell\ncat \"$PROJECT_DIR/defaults/.gitignore\" \u003e\u003e .gitignore\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendog%2Fdefaults","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbendog%2Fdefaults","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbendog%2Fdefaults/lists"}