Skip to content

Commit

Permalink
Finetune renovate config. (#42)
Browse files Browse the repository at this point in the history
* Finetune renovate config.

* Also check requirements*.txt files.

* Fix double equal sign in requirements file.

https://docs.conda.io/projects/conda-build/en/latest/resources/package-spec.html#package-match-specifications lists single equal signs, but I think double is probably fine.

* Remove old format.
  • Loading branch information
jezdez authored Nov 12, 2024
1 parent 22ef48f commit 28708d7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
15 changes: 15 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,20 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"local>anaconda/renovate-config"
],
"pre-commit": {
"enabled": true
},
"customManagers": [
{
"description": "Upgrade conda dependencies",
"fileMatch": [
"(^|/)requirements(.*).txt$"
],
"matchStrings": [
"# renovate: datasource=conda depName=(?<depName>.*?)\\s+-\\s*[\\w-]+\\s*==?\\s*\"?(?<currentValue>.*)\"?"
],
"datasourceTemplate": "conda"
}
]
}
24 changes: 16 additions & 8 deletions tests/requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
conda-build
hatchling
hatch-vcs
pip
pytest
pytest-cov
pytest-mock
pytest-xdist
# renovate: datasource=conda depName=main/conda-build
conda-build >=24.9.0
# renovate: datasource=conda depName=main/hatchling
hatchling ==1.25.0
# renovate: datasource=conda depName=main/hatch-vcs
hatch-vcs ==0.3.0
# renovate: datasource=conda depName=main/pip
pip ==24.2
# renovate: datasource=conda depName=main/pytest
pytest ==7.4.4
# renovate: datasource=conda depName=main/pytest-cov
pytest-cov ==4.1.0
# renovate: datasource=conda depName=main/pytest-mock
pytest-mock ==3.10.0
# renovate: datasource=conda depName=main/pytest-xdist
pytest-xdist ==3.5.0

0 comments on commit 28708d7

Please sign in to comment.