Skip to content

Commit

Permalink
feat: Sort entries with an until field above entries with a from
Browse files Browse the repository at this point in the history
…field

Improves consistency. Most entries are already sorted this way.

Improves readability, since entries are now sorted in increasing
chronological order.

Helps with #1320.
  • Loading branch information
l0b0 committed Sep 25, 2023
1 parent e40f218 commit 49c01c0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 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 --unified overrides/build-systems.json <(jq --raw-output --sort-keys ".[] |= sort_by(if type==\"string\" then . else null end)" < overrides/build-systems.json)'
run: nix-shell --packages jq --pure --run 'diff --unified overrides/build-systems.json <(jq --raw-output --sort-keys ".[] |= sort_by(if type==\"string\" then . else .from != null end)" < overrides/build-systems.json)'

nixpkgs-fmt:
runs-on: ubuntu-latest
Expand Down
32 changes: 16 additions & 16 deletions overrides/build-systems.json
Original file line number Diff line number Diff line change
Expand Up @@ -7270,17 +7270,17 @@
"setuptools"
],
"httpx": [
{
"buildSystem": "setuptools",
"until": "0.23.1"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"from": "0.23.1"
},
{
"buildSystem": "hatchling",
"from": "0.23.1"
},
{
"buildSystem": "setuptools",
"until": "0.23.1"
}
],
"httpx-auth": [
Expand Down Expand Up @@ -8147,6 +8147,14 @@
"setuptools"
],
"jsonschema": [
{
"buildSystem": "setuptools",
"until": "4.6.0"
},
{
"buildSystem": "setuptools-scm",
"until": "4.6.0"
},
{
"buildSystem": "hatch-fancy-pypi-readme",
"from": "4.11.0"
Expand All @@ -8158,14 +8166,6 @@
{
"buildSystem": "hatchling",
"from": "4.6.0"
},
{
"buildSystem": "setuptools",
"until": "4.6.0"
},
{
"buildSystem": "setuptools-scm",
"until": "4.6.0"
}
],
"jsonschema-3": [
Expand Down Expand Up @@ -8222,13 +8222,13 @@
}
],
"jupyter-core": [
{
"buildSystem": "hatchling",
"from": "4.11.0"
},
{
"buildSystem": "setuptools",
"until": "4.11.0"
},
{
"buildSystem": "hatchling",
"from": "4.11.0"
}
],
"jupyter-events": [
Expand Down

0 comments on commit 49c01c0

Please sign in to comment.