Skip to content

Commit

Permalink
feat: Sort string overrides alphabetically
Browse files Browse the repository at this point in the history
Improves consistency and readability.

Helps with nix-community#1320.
  • Loading branch information
l0b0 committed Sep 25, 2023
1 parent 093383b commit b5f7965
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
nix_path: nixpkgs=channel:nixos-unstable
- uses: actions/checkout@v3
- name: Check format
run: nix-shell --packages jq --pure --run 'diff overrides/build-systems.json <(jq --raw-output --sort-keys < overrides/build-systems.json)'
run: nix-shell --packages jq --pure --run 'diff overrides/build-systems.json <(jq --raw-output --sort-keys ".[] |= sort_by(if type==\"string\" then . else null end)" < overrides/build-systems.json)'

nixpkgs-fmt:
runs-on: ubuntu-latest
Expand Down
68 changes: 34 additions & 34 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -1292,8 +1292,8 @@
"setuptools"
],
"autoflake": [
"setuptools",
"hatchling"
"hatchling",
"setuptools"
],
"autograd": [
"setuptools"
Expand Down Expand Up @@ -3700,11 +3700,11 @@
"setuptools"
],
"dask": [
"setuptools",
{
"buildSystem": "versioneer",
"from": "2.0.0"
}
},
"setuptools"
],
"dask-gateway": [
"setuptools"
Expand Down Expand Up @@ -4198,11 +4198,11 @@
"setuptools"
],
"distributed": [
"setuptools",
{
"buildSystem": "versioneer",
"from": "2.0.0"
}
},
"setuptools"
],
"distro": [
"setuptools"
Expand Down Expand Up @@ -5250,8 +5250,8 @@
"setuptools"
],
"execnet": [
"hatchling",
"hatch-vcs",
"hatchling",
"setuptools",
"setuptools-scm"
],
Expand Down Expand Up @@ -6893,8 +6893,8 @@
"setuptools"
],
"gunicorn": [
"setuptools",
"packaging"
"packaging",
"setuptools"
],
"guppy3": [
"setuptools"
Expand Down Expand Up @@ -7305,8 +7305,8 @@
"setuptools"
],
"human-readable": [
"hatchling",
"hatch-vcs"
"hatch-vcs",
"hatchling"
],
"humanfriendly": [
"setuptools"
Expand Down Expand Up @@ -8865,8 +8865,8 @@
"setuptools"
],
"llama-cpp-python": [
"setuptools",
"scikit-build"
"scikit-build",
"setuptools"
],
"llfuse": [
"cython",
Expand Down Expand Up @@ -9749,9 +9749,9 @@
"setuptools-scm"
],
"mpremote": [
"hatchling",
"hatch-requirements-txt",
"hatch-vcs"
"hatch-vcs",
"hatchling"
],
"mpv": [
"setuptools"
Expand Down Expand Up @@ -11129,12 +11129,12 @@
"setuptools"
],
"pandas": [
"cython",
"setuptools",
{
"buildSystem": "versioneer",
"from": "2.0.0"
}
},
"cython",
"setuptools"
],
"pandas-datareader": [
"setuptools"
Expand Down Expand Up @@ -11615,8 +11615,8 @@
"setuptools"
],
"pip-licenses": [
"setuptools",
"pytest-runner"
"pytest-runner",
"setuptools"
],
"pip-requirements-parser": [
"setuptools",
Expand Down Expand Up @@ -13290,8 +13290,8 @@
"setuptools"
],
"pylint-plugin-utils": [
"setuptools",
"poetry"
"poetry",
"setuptools"
],
"pylint-venv": [
"poetry-core"
Expand Down Expand Up @@ -14360,8 +14360,8 @@
"setuptools-scm"
],
"pytest-bdd": [
"setuptools",
"poetry-core"
"poetry-core",
"setuptools"
],
"pytest-benchmark": [
"setuptools"
Expand Down Expand Up @@ -14992,8 +14992,8 @@
"setuptools"
],
"python-multipart": [
"setuptools",
"hatchling"
"hatchling",
"setuptools"
],
"python-mystrom": [
"setuptools"
Expand Down Expand Up @@ -15171,8 +15171,8 @@
"setuptools"
],
"python-ubersmithclient": [
"setuptools",
"pbr"
"pbr",
"setuptools"
],
"python-uinput": [
"setuptools"
Expand Down Expand Up @@ -16494,7 +16494,6 @@
"setuptools"
],
"scikit-build": [
"cython",
{
"buildSystem": "setuptools",
"until": "0.17.0"
Expand All @@ -16514,7 +16513,8 @@
{
"buildSystem": "hatch-vcs",
"from": "0.17.0"
}
},
"cython"
],
"scikit-fmm": [
"setuptools"
Expand Down Expand Up @@ -17532,11 +17532,11 @@
"setuptools"
],
"sqlglot": [
"setuptools",
{
"buildSystem": "setuptools-scm",
"from": "13.0.2"
}
},
"setuptools"
],
"sqlite-fts4": [
"setuptools"
Expand Down Expand Up @@ -17941,8 +17941,8 @@
"setuptools"
],
"tacacs-plus": [
"setuptools",
"pytest-runner"
"pytest-runner",
"setuptools"
],
"tadasets": [
"setuptools"
Expand Down

0 comments on commit b5f7965

Please sign in to comment.