mirror of
https://github.com/hacs/integration.git
synced 2025-08-16 17:12:38 +00:00
Remove legacy-resolver (#3197)
This commit is contained in:
15
.github/matchers/bellybutton.json
vendored
15
.github/matchers/bellybutton.json
vendored
@ -1,15 +0,0 @@
|
||||
{
|
||||
"problemMatcher": [
|
||||
{
|
||||
"owner": "bellybutton",
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": "^(.+)\\:(\\d+)\\s+(.*)$",
|
||||
"file": 1,
|
||||
"line": 2,
|
||||
"message": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
26
.github/workflows/lint.yaml
vendored
26
.github/workflows/lint.yaml
vendored
@ -45,32 +45,6 @@ jobs:
|
||||
- name: 🏃 Run the check (${{ matrix.check }})
|
||||
run: pre-commit run --hook-stage manual ${{ matrix.check }} --all-files --config .github/pre-commit-config.yaml
|
||||
|
||||
lint-custom:
|
||||
runs-on: ubuntu-latest
|
||||
name: With bellybutton
|
||||
steps:
|
||||
- name: 📥 Checkout the repository
|
||||
uses: actions/checkout@v3.5.3
|
||||
|
||||
- name: 🛠️ Set up Python
|
||||
uses: actions/setup-python@v4.6.1
|
||||
id: python
|
||||
with:
|
||||
python-version: "3.x"
|
||||
cache: 'pip'
|
||||
cache-dependency-path: |
|
||||
requirements_base.txt
|
||||
requirements_lint.txt
|
||||
|
||||
- name: 📦 Install requirements
|
||||
run: scripts/install/pip_packages --requirement requirements_lint.txt
|
||||
|
||||
- name: ✅ Add problem matcher
|
||||
run: echo "::add-matcher::.github/matchers/bellybutton.json"
|
||||
|
||||
- name: 🏃 Run validation
|
||||
run: bellybutton lint
|
||||
|
||||
lint-json:
|
||||
runs-on: ubuntu-latest
|
||||
name: With JQ
|
||||
|
@ -1,2 +0,0 @@
|
||||
# aiohttp 3.8.3 is required for 3.11 but HA pin that to 3.8.1
|
||||
aiohttp>=3.8.3,<4.0
|
||||
|
@ -1,4 +1,3 @@
|
||||
-r requirements_base.txt
|
||||
bellybutton==0.3.1
|
||||
pre-commit==3.3.3
|
||||
vulture==2.7
|
||||
|
@ -6,7 +6,6 @@ python3 -m pip \
|
||||
install \
|
||||
--upgrade \
|
||||
--disable-pip-version-check \
|
||||
--use-deprecated=legacy-resolver \
|
||||
--constraint constraints.txt \
|
||||
"${@}"
|
||||
|
||||
|
@ -7,6 +7,4 @@ cd "$(dirname "$0")/.."
|
||||
pre-commit install-hooks --config .github/pre-commit-config.yaml;
|
||||
pre-commit run --hook-stage manual --all-files --config .github/pre-commit-config.yaml;
|
||||
|
||||
bellybutton lint
|
||||
|
||||
vulture . --min-confidence 75 --ignore-names policy
|
||||
|
@ -4,7 +4,7 @@ set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
scripts/install/pip_packages "pip>=21.0,<23.1"
|
||||
scripts/install/pip_packages "pip<23.2,>=21.3.1"
|
||||
scripts/install/pip_packages setuptools wheel
|
||||
scripts/install/pip_packages --requirement requirements_lint.txt --requirement requirements_test.txt
|
||||
scripts/install/frontend
|
||||
|
Reference in New Issue
Block a user