From b25505fc66bbe4ffca034c959004b8d4f44f9313 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Tue, 17 Feb 2026 17:15:28 -0600 Subject: [PATCH] Standardize repository structure and metadata - Rename license.txt to LICENSE and remove redundant COPYING - Add license field to pyproject.toml for better GitHub detection - Add .gitattributes for consistent line endings - Migrate .vscode settings to root workspace file - Modernize feature request issue template to YAML - Add dprint.jsonc configuration --- .gitattributes | 39 +++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 14 -------- .github/ISSUE_TEMPLATE/feature_request.yaml | 34 ++++++++++++++++++ .vscode/settings.json | 7 ---- COPYING => LICENSE | 0 dprint.jsonc | 31 ++++++++++++++++ hydrus.code-workspace | 14 ++++++++ license.txt | 23 ------------ pyproject.toml | 1 + 9 files changed, 119 insertions(+), 44 deletions(-) create mode 100644 .gitattributes delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yaml delete mode 100644 .vscode/settings.json rename COPYING => LICENSE (100%) create mode 100644 dprint.jsonc create mode 100644 hydrus.code-workspace delete mode 100644 license.txt diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..49cd28883 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,39 @@ +# Text files: set LF line endings +* text=auto eol=lf + +# Executables/Scripts +*.bat text eol=crlf +*.ps1 text eol=lf +*.sh text eol=lf +*.command text eol=lf + +# Python files +*.py text eol=lf +*.pyw text eol=lf + +# Documentation +*.md text eol=lf +*.txt text eol=lf +*.adoc text eol=lf + +# Web files +*.html text eol=lf +*.css text eol=lf +*.js text eol=lf +*.json text eol=lf +*.jsonc text eol=lf +*.yaml text eol=lf +*.yml text eol=lf + +# Binary files +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.webp binary +*.mp3 binary +*.mp4 binary +*.db binary +*.sqlite binary +*.wasm binary diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index a5ee1f679..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Feature request -about: Request a new feature to be added to Hydrus -title: '' -labels: feature-request -assignees: '' - ---- - - diff --git a/.github/ISSUE_TEMPLATE/feature_request.yaml b/.github/ISSUE_TEMPLATE/feature_request.yaml new file mode 100644 index 000000000..994b7fca0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yaml @@ -0,0 +1,34 @@ +name: Feature Request +description: Suggest an idea for Hydrus +title: "[Feature]: " +labels: ["experimental", "unconfirmed"] +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to suggest a new feature! + Please check if your feature request hasn't been suggested before. + - type: textarea + id: feature-description + attributes: + label: Description + description: A clear and concise description of what the feature is. + placeholder: I would like to see... + validations: + required: true + - type: textarea + id: problem-solved + attributes: + label: Problem + description: Is your feature request related to a problem? Please describe. + placeholder: It's frustrating when... + - type: textarea + id: alternatives + attributes: + label: Alternatives + description: Describe any alternative solutions or features you've considered. + - type: textarea + id: additional-context + attributes: + label: Additional Context + description: Add any other context or screenshots about the feature request here. diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 87126e75e..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "editor.trimAutoWhitespace": false, - "editor.renderWhitespace": "boundary", - "files.trimTrailingWhitespace": false, - "diffEditor.ignoreTrimWhitespace": false, - "editor.tabSize": 4 -} \ No newline at end of file diff --git a/COPYING b/LICENSE similarity index 100% rename from COPYING rename to LICENSE diff --git a/dprint.jsonc b/dprint.jsonc new file mode 100644 index 000000000..31ccedf5b --- /dev/null +++ b/dprint.jsonc @@ -0,0 +1,31 @@ +{ + "incremental": true, + "indentWidth": 2, + "lineWidth": 120, + "typescript": { + "quoteStyle": "preferSingle", + "semiColons": "asi", + "trailingCommas": "es5" + }, + "json": { + "trailingCommas": "jsonc" + }, + "markdown": { + }, + "toml": { + }, + "excludes": [ + "**/node_modules", + "**/*-lock.json", + "**/target", + "**/dist", + "**/.git" + ], + "plugins": [ + "https://plugins.dprint.dev/typescript-0.95.15.wasm", + "https://plugins.dprint.dev/json-0.21.1.wasm", + "https://plugins.dprint.dev/markdown-0.20.0.wasm", + "https://plugins.dprint.dev/g-plane/pretty_yaml-v0.6.0.wasm", + "https://plugins.dprint.dev/toml-0.7.0.wasm" + ] +} diff --git a/hydrus.code-workspace b/hydrus.code-workspace new file mode 100644 index 000000000..b87667b3b --- /dev/null +++ b/hydrus.code-workspace @@ -0,0 +1,14 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "editor.trimAutoWhitespace": false, + "editor.renderWhitespace": "boundary", + "files.trimTrailingWhitespace": false, + "diffEditor.ignoreTrimWhitespace": false, + "editor.tabSize": 4 + } +} diff --git a/license.txt b/license.txt deleted file mode 100644 index 1dc067feb..000000000 --- a/license.txt +++ /dev/null @@ -1,23 +0,0 @@ - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - Version 3, May 2010 - -Copyright (C) 2011 Hydrus Developer - -Everyone is permitted to copy and distribute verbatim or modified -copies of this license document, and changing it is allowed as long -as the name is changed. - -This license applies to any copyrightable work with which it is -packaged and/or distributed, except works that are already covered by -another license. Any other license that applies to the same work -shall take precedence over this one. - -To the extent permitted by applicable law, the works covered by this -license are provided "as is" and do not come with any warranty except -where otherwise explicitly stated. - - - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION, AND MODIFICATION - - 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/pyproject.toml b/pyproject.toml index 76fa0288e..1d07ebbb2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,6 +2,7 @@ name = "hydrus" version = "v659" description = "A personal booru-style media tagger" +license = {text = "WTFPL-3.0"} readme = "README.md" requires-python = ">=3.11" dependencies = [