Skip to content

Commit

Permalink
Add various configs and scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
eli64s committed Dec 31, 2024
1 parent 3150474 commit 45ba832
Show file tree
Hide file tree
Showing 46 changed files with 1,353 additions and 1,051 deletions.
6 changes: 5 additions & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
version = 1

[[analyzers]]
name = "shell"
name = "shell"
enabled = true

[analyzers.meta]
dialect = "zsh"
57 changes: 57 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# This release drafter follows the conventions
# from https://keepachangelog.com

name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
categories:
- title: ✨ Features
labels:
- feat
- feature
- enhancement
- title: 🪲 Bug Fixes
labels:
- fix
- bug
- title: 🧹 Chore
labels:
- chore
- maintenance
- refactor
- title: ⛔️ Deprecated
labels:
- deprecated
- title: 🗑 Removed
labels:
- removed
- title: 🔐 Security
labels:
- security
- vulnerability
- title: 📄 Documentation
labels:
- docs
- documentation
- title: ⚙️ Dependency Updates
labels:
- deps
- dependencies
collapse-after: 5

change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
version-resolver:
major:
labels:
- major
minor:
labels:
- minor
patch:
labels:
- patch
default: patch
template: |
## What's Changed
$CHANGES
41 changes: 41 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 32 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.14.1'
hooks:
- id: mypy
additional_dependencies:
- types-PyYAML
- types-requests
args: [--config-file=python/mypy.ini]
81 changes: 41 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,46 +45,47 @@ This repository contains configuration files and bash scripts to automate variou
The repository is structured as follows:

```sh
└── dots/
├── bash
│ ├── builds
│ │ ├── docker_hub.sh
│ │ └── pypi.sh
│ ├── common
│ │ ├── clean.sh
│ │ ├── run.sh
│ │ └── test.sh
│ ├── file-ops
│ │ ├── aggregate_docs.sh
│ │ ├── chunk_docs.sh
│ │ ├── modify_filenames.sh
│ │ └── move_directory.sh
│ ├── install
│ │ ├── local_dependencies.sh
│ │ ├── local_dependencies_uninstall.sh
│ │ ├── micromamba.sh
│ │ └── pyflink.sh
│ └── project-setup
│ ├── create_directory_structure.sh
│ ├── create_python_project.sh
│ └── tree_to_directory.sh
├── git
│ ├── .gitcommit_template
│ ├── .gitconfig
│ ├── .gitignore
│ └── .gitignore_global
├── make
│ ├── Makefile-poetry
│ └── Makefile-uv
├── python
│ ├── .ruff.toml
│ ├── pyproject.toml
│ └── pytest.ini
├── vscode
│ └── settings.json
└── zsh
├── .zprofile
└── .zshrc
.
├── make
│   ├── Makefile-poetry
│   └── Makefile-uv
├── python
│   ├── noxfile.py
│   ├── conf
│   │   ├── pyproject-poetry.toml
│   │   └── pyproject-uv.toml
│   ├── lint
│   ├── tests
│   │   ├── behave.ini
│   │   └── pytest.ini
│   └── type-checker
│   └── mypy.ini
├── scripts
│   ├── builds
│   │   ├── docker_hub.sh
│   │   └── pypi.sh
│   ├── common
│   │   ├── clean.sh
│   │   ├── run.sh
│   │   └── test.sh
│   ├── cookie-cutter
│   │   └── create_structure.sh
│   ├── file-system
│   │   ├── aggregate_docs.sh
│   │   ├── chunk_docs.sh
│   │   └── modify_filenames.sh
│   └── install
│   ├── local_dependencies.sh
│   ├── local_dependencies_uninstall.sh
│   ├── micromamba.sh
│   ├── migrate_to_uv.sh
│   ├── precommit.sh
│   └── pyflink.sh
├── vscode
│   └── settings.json
└── zsh
   ├── .zprofile
└── .zshrc
```

### Project Index
Expand Down
77 changes: 0 additions & 77 deletions bash/common/clean.sh

This file was deleted.

14 changes: 0 additions & 14 deletions bash/common/run.sh

This file was deleted.

12 changes: 0 additions & 12 deletions bash/common/test.sh

This file was deleted.

19 changes: 0 additions & 19 deletions bash/file-ops/modify_filenames.sh

This file was deleted.

15 changes: 0 additions & 15 deletions bash/file-ops/move_directory.sh

This file was deleted.

Loading

0 comments on commit 45ba832

Please sign in to comment.