mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
pre-commit: return & run pretty-format-json as I like its sorting
This commit is contained in:
parent
1585a6daae
commit
fc8efef261
@ -49,15 +49,11 @@ repos:
|
|||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args: [--fix=auto]
|
args: [--fix=auto]
|
||||||
# Remember to check that prettier excludes it, if used!
|
- id: pretty-format-json
|
||||||
#- id: pretty-format-json
|
args:
|
||||||
# Breaks AdNauseam/uBlock Origin rules as the browser interprets
|
# Remember also: --no-sort-keys
|
||||||
# values to be set for empty options.
|
# ASCII excludes the älphäbet amongst others
|
||||||
#exclude: ^etc\/firefox\/policies\/policies.json|etc\/opt\/chromium\/policies\/managed\/aminda-extensions.json$
|
[--autofix, --no-ensure-ascii]
|
||||||
#args:
|
|
||||||
# Remember also: --no-sort-keys
|
|
||||||
# ASCII excludes the älphäbet amongst others
|
|
||||||
#[--autofix, --no-ensure-ascii]
|
|
||||||
#- id: requirements-txt-fixer
|
#- id: requirements-txt-fixer
|
||||||
|
|
||||||
# Synchronize dependencies between this file and package managers
|
# Synchronize dependencies between this file and package managers
|
||||||
@ -134,8 +130,9 @@ repos:
|
|||||||
rev: "v3.2.5"
|
rev: "v3.2.5"
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
# These are handled by Black below
|
# These are handled by Black below or pretty-format-json above, which
|
||||||
exclude_types: [python, pyi, jupyter]
|
# can also sort keys.
|
||||||
|
exclude_types: [python, pyi, jupyter, json]
|
||||||
additional_dependencies: [
|
additional_dependencies: [
|
||||||
# https://www.npmjs.com/package/prettier
|
# https://www.npmjs.com/package/prettier
|
||||||
"prettier@3.2.5",
|
"prettier@3.2.5",
|
||||||
@ -144,7 +141,7 @@ repos:
|
|||||||
# https://www.npmjs.com/package/prettier-plugin-toml
|
# https://www.npmjs.com/package/prettier-plugin-toml
|
||||||
"prettier-plugin-toml@2.0.1",
|
"prettier-plugin-toml@2.0.1",
|
||||||
# https://www.npmjs.com/package/prettier-plugin-sort-json
|
# https://www.npmjs.com/package/prettier-plugin-sort-json
|
||||||
"prettier-plugin-sort-json@4.0.0",
|
#"prettier-plugin-sort-json@4.0.0",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Black, opinionated Python code formatter
|
# Black, opinionated Python code formatter
|
||||||
|
@ -21,7 +21,10 @@
|
|||||||
"memory": {
|
"memory": {
|
||||||
"format": "RAM {percentage}%"
|
"format": "RAM {percentage}%"
|
||||||
},
|
},
|
||||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
"modules-left": [
|
||||||
|
"sway/workspaces",
|
||||||
|
"sway/mode"
|
||||||
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"gamemode",
|
"gamemode",
|
||||||
"cpu",
|
"cpu",
|
||||||
@ -49,7 +52,10 @@
|
|||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "VOL {volume}%",
|
"format": "VOL {volume}%",
|
||||||
"format-bluetooth": "BT VOL {volume}%",
|
"format-bluetooth": "BT VOL {volume}%",
|
||||||
"ignored-sinks": ["Easy Effects Sink", "Easy Effects Source"]
|
"ignored-sinks": [
|
||||||
|
"Easy Effects Sink",
|
||||||
|
"Easy Effects Source"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"sway/language": {
|
"sway/language": {
|
||||||
"format": "KBD {short} {variant}",
|
"format": "KBD {short} {variant}",
|
||||||
|
@ -4,7 +4,9 @@
|
|||||||
"Extensions": {
|
"Extensions": {
|
||||||
"adnauseam@rednoise.org": {
|
"adnauseam@rednoise.org": {
|
||||||
"toAdd": {
|
"toAdd": {
|
||||||
"trustedSiteDirectives": [""]
|
"trustedSiteDirectives": [
|
||||||
|
""
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"toOverwrite": {
|
"toOverwrite": {
|
||||||
"filterLists": [
|
"filterLists": [
|
||||||
@ -16,7 +18,11 @@
|
|||||||
},
|
},
|
||||||
"jid1-MnnxcxisBPnSXQ@jetpack": {
|
"jid1-MnnxcxisBPnSXQ@jetpack": {
|
||||||
"checkForDNTPolicy": true,
|
"checkForDNTPolicy": true,
|
||||||
"disabledSites": ["cloudflare.com", "ecosia.org", "keyoxide.org"],
|
"disabledSites": [
|
||||||
|
"cloudflare.com",
|
||||||
|
"ecosia.org",
|
||||||
|
"keyoxide.org"
|
||||||
|
],
|
||||||
"learnInIncognito": true,
|
"learnInIncognito": true,
|
||||||
"learnLocally": true,
|
"learnLocally": true,
|
||||||
"sendDNTSignal": true,
|
"sendDNTSignal": true,
|
||||||
@ -101,7 +107,10 @@
|
|||||||
},
|
},
|
||||||
"DNSOverHTTPS": {
|
"DNSOverHTTPS": {
|
||||||
"Enabled": false,
|
"Enabled": false,
|
||||||
"ExcludedDomains": ["http.badssl.com", "norwegianwifi.com"],
|
"ExcludedDomains": [
|
||||||
|
"http.badssl.com",
|
||||||
|
"norwegianwifi.com"
|
||||||
|
],
|
||||||
"Fallback": true,
|
"Fallback": true,
|
||||||
"Locked": true,
|
"Locked": true,
|
||||||
"ProviderURL": "https://dns0.eu/",
|
"ProviderURL": "https://dns0.eu/",
|
||||||
@ -144,6 +153,10 @@
|
|||||||
"Locked": false
|
"Locked": false
|
||||||
},
|
},
|
||||||
"ExtensionSettings": {
|
"ExtensionSettings": {
|
||||||
|
"@contain-facebook": {
|
||||||
|
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/facebook-container/latest.xpi",
|
||||||
|
"installation_mode": "normal_installed"
|
||||||
|
},
|
||||||
"adnauseam@rednoise.org": {
|
"adnauseam@rednoise.org": {
|
||||||
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/adnauseam/latest.xpi",
|
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/adnauseam/latest.xpi",
|
||||||
"installation_mode": "blocked"
|
"installation_mode": "blocked"
|
||||||
@ -185,10 +198,6 @@
|
|||||||
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/sidebery/latest.xpi",
|
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/sidebery/latest.xpi",
|
||||||
"installation_mode": "force_installed"
|
"installation_mode": "force_installed"
|
||||||
},
|
},
|
||||||
"@contain-facebook": {
|
|
||||||
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/facebook-container/latest.xpi",
|
|
||||||
"installation_mode": "normal_installed"
|
|
||||||
},
|
|
||||||
"{446900e4-71c2-419f-a6a7-df9c091e268b}": {
|
"{446900e4-71c2-419f-a6a7-df9c091e268b}": {
|
||||||
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi",
|
"install_url": "https://addons.mozilla.org/firefox/downloads/latest/bitwarden-password-manager/latest.xpi",
|
||||||
"installation_mode": "force_installed"
|
"installation_mode": "force_installed"
|
||||||
@ -301,6 +310,69 @@
|
|||||||
"Type": "boolean",
|
"Type": "boolean",
|
||||||
"Value": false
|
"Value": false
|
||||||
},
|
},
|
||||||
|
"browser.crashReports.unsubmittedCheck.autoSubmit2": {
|
||||||
|
"Comment": "Automatically sending crash reports, but letting the user say no.",
|
||||||
|
"Status": "default",
|
||||||
|
"Type": "boolean",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"browser.discovery.enabled": {
|
||||||
|
"Comment": "This means personalized extension recommendations in extension management.",
|
||||||
|
"Status": "locked",
|
||||||
|
"Type": "boolean",
|
||||||
|
"Value": false
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.blockedURIs.enabled": {
|
||||||
|
"Status": "locked",
|
||||||
|
"Type": "boolean",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.downloads.remote.url": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.malware.enabled": {
|
||||||
|
"Status": "locked",
|
||||||
|
"Type": "boolean",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.phishing.enabled": {
|
||||||
|
"Status": "locked",
|
||||||
|
"Type": "boolean",
|
||||||
|
"Value": true
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.google.gethashURL": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.google.lists": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.google.updateURL": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.google4.dataSharingURL": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.google4.gethashURL": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.google4.updateURL": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.mozilla.gethashURL": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.mozilla.lists": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.mozilla.lists.base": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.mozilla.lists.content": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
|
"browser.safebrowsing.provider.mozilla.updateURL": {
|
||||||
|
"Status": "clear"
|
||||||
|
},
|
||||||
"browser.translation.neverForLanguages": {
|
"browser.translation.neverForLanguages": {
|
||||||
"Status": "default",
|
"Status": "default",
|
||||||
"Type": "string",
|
"Type": "string",
|
||||||
@ -311,24 +383,6 @@
|
|||||||
"Type": "string",
|
"Type": "string",
|
||||||
"Value": "en, fi"
|
"Value": "en, fi"
|
||||||
},
|
},
|
||||||
"browser.discovery.enabled": {
|
|
||||||
"Comment": "This means personalized extension recommendations in extension management.",
|
|
||||||
"Status": "locked",
|
|
||||||
"Type": "boolean",
|
|
||||||
"Value": false
|
|
||||||
},
|
|
||||||
"extensions.htmlaboutaddons.recommendations.enabled": {
|
|
||||||
"Comment": "This means the same, but without personalization.",
|
|
||||||
"Status": "locked",
|
|
||||||
"Type": "boolean",
|
|
||||||
"Value": false
|
|
||||||
},
|
|
||||||
"browser.crashReports.unsubmittedCheck.autoSubmit2": {
|
|
||||||
"Comment": "Automatically sending crash reports, but letting the user say no.",
|
|
||||||
"Status": "default",
|
|
||||||
"Type": "boolean",
|
|
||||||
"Value": true
|
|
||||||
},
|
|
||||||
"cookiebanners.bannerClicking.enabled": {
|
"cookiebanners.bannerClicking.enabled": {
|
||||||
"Comment": "Preference not allowed for stability reasons. :(",
|
"Comment": "Preference not allowed for stability reasons. :(",
|
||||||
"Status": "locked",
|
"Status": "locked",
|
||||||
@ -352,26 +406,17 @@
|
|||||||
"Type": "boolean",
|
"Type": "boolean",
|
||||||
"Value": true
|
"Value": true
|
||||||
},
|
},
|
||||||
"browser.safebrowsing.blockedURIs.enabled": {
|
|
||||||
"Status": "locked",
|
|
||||||
"Type": "boolean",
|
|
||||||
"Value": true
|
|
||||||
},
|
|
||||||
"browser.safebrowsing.malware.enabled": {
|
|
||||||
"Status": "locked",
|
|
||||||
"Type": "boolean",
|
|
||||||
"Value": true
|
|
||||||
},
|
|
||||||
"browser.safebrowsing.phishing.enabled": {
|
|
||||||
"Status": "locked",
|
|
||||||
"Type": "boolean",
|
|
||||||
"Value": true
|
|
||||||
},
|
|
||||||
"dom.security.https_only_mode": {
|
"dom.security.https_only_mode": {
|
||||||
"Status": "locked",
|
"Status": "locked",
|
||||||
"Type": "boolean",
|
"Type": "boolean",
|
||||||
"Value": true
|
"Value": true
|
||||||
},
|
},
|
||||||
|
"extensions.htmlaboutaddons.recommendations.enabled": {
|
||||||
|
"Comment": "This means the same, but without personalization.",
|
||||||
|
"Status": "locked",
|
||||||
|
"Type": "boolean",
|
||||||
|
"Value": false
|
||||||
|
},
|
||||||
"extensions.webextensions.restrictedDomains": {
|
"extensions.webextensions.restrictedDomains": {
|
||||||
"Comment": "Don't protect Mozilla domains from privacy extensions.",
|
"Comment": "Don't protect Mozilla domains from privacy extensions.",
|
||||||
"Status": "locked",
|
"Status": "locked",
|
||||||
@ -410,52 +455,6 @@
|
|||||||
"Type": "string",
|
"Type": "string",
|
||||||
"Value": "1.5"
|
"Value": "1.5"
|
||||||
},
|
},
|
||||||
"browser.safebrowsing.downloads.remote.url": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google.gethashURL": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google.lists": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google.updateURL": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google4.dataSharingURL": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google4.gethashURL": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.google4.updateURL": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.mozilla.gethashURL": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.mozilla.lists": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.mozilla.lists.base": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
|
|
||||||
"browser.safebrowsing.provider.mozilla.lists.content": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
"browser.safebrowsing.provider.mozilla.updateURL": {
|
|
||||||
"Status": "clear"
|
|
||||||
},
|
|
||||||
"layout.css.prefers-color-scheme.content-override": {
|
"layout.css.prefers-color-scheme.content-override": {
|
||||||
"Comment": "Dark theme by default, disabling allowed",
|
"Comment": "Dark theme by default, disabling allowed",
|
||||||
"Status": "default",
|
"Status": "default",
|
||||||
|
@ -63,7 +63,9 @@
|
|||||||
},
|
},
|
||||||
"mlojlfildnehdpnlmpkeiiglhhkofhpb": {
|
"mlojlfildnehdpnlmpkeiiglhhkofhpb": {
|
||||||
"toAdd": {
|
"toAdd": {
|
||||||
"trustedSiteDirectives": [""]
|
"trustedSiteDirectives": [
|
||||||
|
""
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"toOverwrite": {
|
"toOverwrite": {
|
||||||
"filterLists": [
|
"filterLists": [
|
||||||
@ -75,7 +77,11 @@
|
|||||||
},
|
},
|
||||||
"pkehgijcmpdhfbdbbnkijodmdjhbjlgp": {
|
"pkehgijcmpdhfbdbbnkijodmdjhbjlgp": {
|
||||||
"checkForDNTPolicy": true,
|
"checkForDNTPolicy": true,
|
||||||
"disabledSites": ["cloudflare.com", "ecosia.org", "keyoxide.org"],
|
"disabledSites": [
|
||||||
|
"cloudflare.com",
|
||||||
|
"ecosia.org",
|
||||||
|
"keyoxide.org"
|
||||||
|
],
|
||||||
"learnInIncognito": true,
|
"learnInIncognito": true,
|
||||||
"learnLocally": true,
|
"learnLocally": true,
|
||||||
"sendDNTSignal": true,
|
"sendDNTSignal": true,
|
||||||
|
@ -1 +1,3 @@
|
|||||||
{ "RestoreOnStartup": 1 }
|
{
|
||||||
|
"RestoreOnStartup": 1
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user