Remove code formatting workflows and related configuration files

This commit is contained in:
DogmaDragon
2025-02-11 01:54:59 +02:00
parent b239e9d9c8
commit c5f49e9462
7 changed files with 1 additions and 132 deletions

View File

@@ -1,51 +0,0 @@
name: Check Code Format
on:
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
check_js_code_format:
name: Check JS code format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Check format
uses: creyD/prettier_action@v4.3
with:
prettier_options: --check .
dry: true
only_changed: true
github_token: ${{ secrets.GITHUB_TOKEN }}
check_py_code_format:
name: Check PY code format
runs-on: ubuntu-latest
needs: check_js_code_format
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Check format
uses: psf/black@stable
with:
options: '--exclude="3rd party"'
src: "."

View File

@@ -1,49 +0,0 @@
name: Check Code Format
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
check_js_code_format:
name: Check JS code format
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Check format
uses: creyD/prettier_action@v4.3
with:
prettier_options: --check .
dry: true
only_changed: true
github_token: ${{ secrets.GITHUB_TOKEN }}
check_py_code_format:
name: Check PY code format
runs-on: ubuntu-latest
needs: check_js_code_format
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
- name: Check format
uses: psf/black@stable
with:
options: '--exclude="3rd party"'
src: "."

View File

@@ -1,12 +0,0 @@
*.md
# dependencies
node_modules
yarn.lock
# production
dist
# 3rd party
# https://github.com/killhellokitty/stash-material-ize-theme/blob/main/stash-theme.css
plugins/themeSwitch/assets/themes/materialize

View File

@@ -1,3 +0,0 @@
{
"trailingComma": "es5"
}

View File

@@ -1,12 +1,5 @@
{
"name": "community-scripts",
"description": "This repository contains plugin and utility scripts created by the Stash community and hosted on the official GitHub repo.",
"license": "AGPL-3.0-only",
"scripts": {
"format": "prettier --write .",
"format-py": "black --exclude=\"3rd party\" ."
},
"devDependencies": {
"prettier": "^3.2.5"
}
"license": "AGPL-3.0-only"
}

View File

@@ -1 +0,0 @@
black>=24.1.1

View File

@@ -1,8 +0,0 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
prettier@^3.2.5:
version "3.2.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==