mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #549] [CLOSED] Use pre-commit #1331
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1331
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/549
Author: @nicois
Created: 12/17/2022
Status: ❌ Closed
Base:
main← Head:nicois/pre-commit📝 Commits (2)
108ad3cAdd pre-commit hooksb218e62Actually apply the pre-commit fixers to the codebase.📊 Changes
152 files changed (+42295 additions, -31039 deletions)
View changed files
📝
.github/workflows/build.yaml(+9 -16)📝
.github/workflows/docs.yaml(+6 -11)➕
.github/workflows/pre-commit.yml(+13 -0)📝
.github/workflows/release.yaml(+11 -19)📝
.github/workflows/test.yaml(+12 -22)📝
.gitpod.yml(+1 -1)📝
.goreleaser.yml(+18 -29)➕
.pre-commit-config.yaml(+26 -0)📝
CODE_OF_CONDUCT.md(+1 -2)📝
LICENSE.GPLv2(+0 -1)📝
README.md(+7 -7)📝
auth/auth_sqlite.go(+6 -5)📝
auth/auth_sqlite_test.go(+3 -2)📝
client/client.go(+3 -2)📝
client/client_test.go(+3 -2)📝
client/config.go(+2 -1)📝
client/config_test.go(+3 -2)📝
client/options.go(+2 -1)📝
cmd/access.go(+3 -2)📝
cmd/access_test.go(+2 -1)...and 80 more files
📄 Description
Add pre-commit hooks
Without this, either I need to disable my IDE's auto-linting/fixing, or keep undoing the fixes it makes before pushing commits. Other contributers will be in a similar situation. Otherwise, their PRs will include syntax changes which distract from reviewing the real behavioural changes.
There are standard formatters for most file formats. Along with stripping trailing whitespace, this cleans up the files without modifying their behaviour in any way.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.