8000 More CI fixes (#208) · python-kasa/python-kasa@d720288 · GitHub
[go: up one dir, main page]

Skip to content

Commit d720288

Browse files
authored
More CI fixes (#208)
* Remove bandit from CI, update poetry.lock&pre-commit-config.yaml * We don't support python 3.6 * poetry install also on tests flow * remove pytest-azurepipelines
1 parent 202d107 commit d720288

File tree

4 files changed

+126
-118
lines changed

4 files changed

+126
-118
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ jobs:
5353
- name: "Run check-ast"
5454
run: |
5555
poetry run pre-commit run check-ast --all-files
56-
- name: "Potential security issues (bandit)"
57-
run: |
58-
poetry run pre-commit run bandit --all-files
59-
6056
6157
tests:
6258
name: "Python ${{ matrix.python-version}} on ${{ matrix.os }}"
@@ -65,7 +61,7 @@ jobs:
6561

6662
strategy:
6763
matrix:
68-
python-version: ["3.6", "3.7", "3.8", "3.9", "pypy3"]
64+
python-version: ["3.7", "3.8", "3.9", "pypy3"]
6965
os: [ubuntu-latest, macos-latest, windows-latest]
7066

7167
steps:
@@ -76,6 +72,7 @@ jobs:
7672
- name: "Install dependencies"
7773
run: |
7874
python -m pip install --upgrade pip poetry
75+
poetry install
7976
- name: "Run tests"
8077
run: |
8178
poetry run pytest --cov kasa --cov-report xml

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ repos:
1010
- id: check-ast
1111

1212
- repo: https://github.com/asottile/pyupgrade
13-
rev: v2.19.4
13+
rev: v2.27.0
1414
hooks:
1515
- id: pyupgrade
1616
args: ['--py36-plus']
1717

1818
- repo: https://github.com/python/black
19-
rev: 21.6b0
19+
rev: 21.9b0
2020
hooks:
2121
- id: black
2222

@@ -27,13 +27,13 @@ repos:
2727
additional_dependencies: [flake8-docstrings]
2828

2929
- repo: https://github.com/pre-commit/mirrors-isort
30-
rev: v5.8.0
30+
rev: v5.9.3
3131
hooks:
3232
- id: isort
3333
additional_dependencies: [toml]
3434

3535
- repo: https://github.com/pre-commit/mirrors-mypy
36-
rev: v0.902
36+
rev: v0.910
3737
hooks:
3838
- id: mypy
3939
additional_dependencies: [types-click]

0 commit comments

Comments
 (0)
0