-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
42 lines (42 loc) · 1.81 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"contributors": [
"Andrew Udvare <audvare@gmail.com>"
],
"devDependencies": {
"@prettier/plugin-xml": "^3.4.1",
"cspell": "^8.14.1",
"markdownlint-cli2": "^0.13.0",
"prettier": "^3.3.3",
"prettier-plugin-ini": "^1.2.0",
"prettier-plugin-sort-json": "^4.0.0",
"prettier-plugin-toml": "^2.0.1"
},
"license": "MIT",
"name": "macprefs",
"prettier": {
"endOfLine": "lf",
"iniSpaceAroundEquals": true,
"plugins": [
"@prettier/plugin-xml",
"prettier-plugin-ini",
"prettier-plugin-sort-json",
"prettier-plugin-toml"
],
"printWidth": 100,
"singleQuote": true
},
"repository": "git@github.com:Tatsh/macprefs.git",
"scripts": {
"check-formatting": "yarn prettier -c . && poetry run isort . --check && poetry run yapf -prd . && markdownlint-cli2 '**/*.md' '#node_modules'",
"check-spelling": "cspell --no-progress .",
"clean-dict": "r=(); while IFS=$\\n read -r w; do ! rg --no-config -qi. -g '!.vscode/dictionary.txt' -m 1 \"$w\" . && r+=(\"$w\"); done < ./.vscode/dictionary.txt; j=$(printf \"|%s\" \"${r[@]}\"); j=\"^(${j:1})$\"; grep -Ev \"${j}\" ./.vscode/dictionary.txt > new && mv new ./.vscode/dictionary.txt",
"fix-pluggy": "touch \"$(poetry run python -c 'import inspect, os, pluggy; print(os.path.dirname(inspect.getabsfile(pluggy)))')/py.typed\"",
"format": "yarn prettier -w . && poetry run isort . && poetry run yapf -pri . && markdownlint-cli2 --fix '**/*.md' '#node_modules'",
"gen-manpage": "sphinx-build -T -E -b man -d ./docs/_build/doctrees -D language=en ./docs . && mv macprefs.1 man/",
"mypy": "yarn fix-pluggy && poetry run mypy .",
"qa": "yarn mypy && yarn ruff && yarn check-spelling && yarn check-formatting",
"ruff": "poetry run ruff .",
"test": "poetry run pytest"
},
"version": "0.3.4"
}