Skip to content

Commit

Permalink
Sync with WeblateOrg/meta
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Dec 15, 2023
1 parent 57832e7 commit 950770b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
12 changes: 12 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@
"shellcheck-py/shellcheck-py"
],
"versioning": "loose"
},
{
"matchPackageNames": [
"python"
],
"matchDatasources": [
"docker"
],
"separateMinorPatch": true,
"minor": {
"dependencyDashboardApproval": true
}
}
],
"regexManagers": [
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ jobs:
path: |
~/.cache/pip
~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/requirements*.txt') }}-${{ hashFiles('.pre-commit-config.yaml') }}
key: ${{ runner.os }}-pre-commit-${{ hashFiles('**/requirements*.txt') }}-${{ hashFiles('.pre-commit-config.yaml') }}-${{ hashFiles('pyproject.toml') }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Update pip
run: python -m pip install --upgrade pip wheel
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -r requirements-lint.txt
if [ -f requirements-lint.txt ] ; then
pip install -r requirements-lint.txt
else
pip install -e .[lint]
fi
- name: pre-commit
run: pre-commit run --all
9 changes: 1 addition & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,12 @@ repos:
rev: v1.33.0
hooks:
- id: yamllint
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.8
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/asottile/blacken-docs
rev: 1.16.0
hooks:
Expand Down

0 comments on commit 950770b

Please sign in to comment.