Skip to content

Add .pre-commit-config.yaml #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Describe the bug](#describe-the-bug)
- [Expected behavior](#expected-behavior)
- [Desktop (please complete the following information):](#desktop-please-complete-the-following-information)
- [Additional context](#additional-context)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

---
name: Bug report
about: Create a report to help us improve
Expand Down
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Is your feature request related to a problem? Please describe.](#is-your-feature-request-related-to-a-problem-please-describe)
- [Describe the solution you'd like](#describe-the-solution-youd-like)
- [Describe alternatives you've considered](#describe-alternatives-youve-considered)
- [Additional context](#additional-context)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

---
name: Feature request
about: Suggest an idea for this project
Expand Down
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Description](#description)
- [Type of changes](#type-of-changes)
- [Checklist](#checklist)
- [License Acceptance](#license-acceptance)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

<!--- Provide a general summary of your changes in the Title above -->

# Description
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/awesomebot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
- uses: actions/checkout@v4
- uses: docker://dkhamsing/awesome_bot:latest
with:
args: /github/workspace/README.md --allow-dupe --allow-redirect --request-delay 1 --white-list https://github,https://img.shields.io
args: /github/workspace/README.md --allow-dupe --allow-redirect --request-delay 1 --white-list https://github,https://img.shields.io
6 changes: 5 additions & 1 deletion .github/workflows/megalinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISABLE_LINTERS: SPELL_CSPELL
# SPELL_MISSPELL_FILTER_REGEX_EXCLUDE: '(\.yml)'

ACTION_ACTIONLINT_DISABLE_ERRORS: true
REPOSITORY_CHECKOV_DISABLE_ERRORS: true
REPOSITORY_KICS_DISABLE_ERRORS: true
REPOSITORY_TRIVY_DISABLE_ERRORS: true
YAML_YAMLLINT_DISABLE_ERRORS: true
# Upload Mega-Linter artifacts. They will be available on Github action page "Artifacts" section
- name: Archive production artifacts
if: ${{ success() }} || ${{ failure() }}
Expand Down
38 changes: 38 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
ci:
skip:
- poetry-lock
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: debug-statements
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.0
hooks:
# Run the linter.
- id: ruff
args:
- "--fix"
# Run the formatter.
- id: ruff-format
- repo: https://github.com/thlorenz/doctoc
rev: v2.2.0
hooks:
- id: doctoc
- repo: https://github.com/python-poetry/poetry
rev: 2.1.1
hooks:
- id: poetry-check
- id: poetry-lock
17 changes: 16 additions & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*

- [Lima Xbar/Swiftbar changelog](#lima-xbarswiftbar-changelog)
- [0.0.1 - 1.0.0](#001---100)
- [1.1.1](#111)
- [1.2.0](#120)
- [1.3.0](#130)
- [1.3.1](#131)
- [1.3.2](#132)
- [1.3.3](#133)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

# Lima Xbar/Swiftbar changelog

## 0.0.1 - 1.0.0
Expand Down Expand Up @@ -34,4 +49,4 @@ dd more candidate directories to be added to $PATH
is installed in a user's home directory. Closes https://github.com/unixorn/lima-xbar-plugin/issues/28
- While we're in there, check for `/usr/local/sbin`,
`/opt/homebrew/sbin`, `/opt/local/sbin`, `~/bin` and `~/sbin`
directories too.
directories too.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
## Table of Contents

- [Description](#description)
- [Screen shots](#screen-shots)
- [Theme](#theme)
- [Installation](#installation)
- [Dependencies](#dependencies)

Expand Down
Loading
Loading