Skip to content

Commit ab5bc7c

Browse files
authored
Chore(precommit): update precommit to latest versions (#78)
* update precommit to latest version * update .coveragerc to show missing lines of coverage * Updated all github actions to newest version
1 parent d65b808 commit ab5bc7c

File tree

4 files changed

+31
-28
lines changed

4 files changed

+31
-28
lines changed

.coveragerc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ branch = True
33

44
[report]
55
fail_under = 90
6-
show_missing = False
6+
show_missing = True

.github/workflows/cd.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
name: Prepare for NPM
1313
runs-on: ubuntu-18.04
1414
steps:
15-
- uses: actions/checkout@v2
16-
- uses: actions/setup-node@v1
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-node@v3
1717
with:
1818
node-version: 12
1919
registry-url: https://registry.npmjs.org/
@@ -28,7 +28,7 @@ jobs:
2828
npm pack
2929
- name: Upload NPM Artifacts
3030
id: upload_npm
31-
uses: actions/upload-artifact@v1
31+
uses: actions/upload-artifact@v3
3232
with:
3333
name: package-npm
3434
path: cfn-rpdk-${{ env.VERSION }}.tgz
@@ -40,17 +40,17 @@ jobs:
4040
matrix:
4141
python: [3.6]
4242
steps:
43-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v3
4444
- name: Setup Python ${{ matrix.python }}
45-
uses: actions/setup-python@v1
45+
uses: actions/setup-python@v4
4646
with:
4747
python-version: ${{ matrix.python }}
4848
- name: Install Dependencies and Package Project
4949
id: installing
5050
run: |
5151
python -m pip install --upgrade pip setuptools wheel
5252
python3 setup.py sdist bdist_wheel
53-
- uses: actions/upload-artifact@v1
53+
- uses: actions/upload-artifact@v3
5454
with:
5555
name: dist-py${{ matrix.python }}
5656
path: dist
@@ -60,13 +60,13 @@ jobs:
6060
needs: [delivery-nodejs, delivery-python]
6161
runs-on: ubuntu-18.04
6262
steps:
63-
- uses: actions/checkout@v2
63+
- uses: actions/checkout@v3
6464
- name: Download NPM Artifacts
65-
uses: actions/download-artifact@v1
65+
uses: actions/download-artifact@v3
6666
with:
6767
name: package-npm
6868
- name: Download Python 3.6 Artifacts
69-
uses: actions/download-artifact@v1
69+
uses: actions/download-artifact@v3
7070
with:
7171
name: dist-py3.6
7272
path: dist/

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
LOG_PATH: /tmp/debug-logs
2323
PIP_LOG_FILE: /tmp/pip.log
2424
steps:
25-
- uses: actions/checkout@v2
26-
- uses: actions/setup-python@v1
25+
- uses: actions/checkout@v3
26+
- uses: actions/setup-python@v4
2727
with:
2828
python-version: 3.7
2929
- name: Install Dependencies Python
@@ -33,7 +33,7 @@ jobs:
3333
pip install --upgrade pip
3434
pip install --upgrade setuptools wheel aws-sam-cli -r https://raw.githubusercontent.com/aws-cloudformation/cloudformation-cli/master/requirements.txt
3535
pip install .
36-
- uses: actions/setup-node@v1
36+
- uses: actions/setup-node@v3
3737
with:
3838
node-version: 14
3939
- name: Install Dependencies Node.js
@@ -55,7 +55,7 @@ jobs:
5555
bash codecov.sh -f coverage/ts/coverage-final.json -F unittests -n codecov-typescript
5656
- name: Upload Coverage Artifacts
5757
id: upload_coverage
58-
uses: actions/upload-artifact@v1
58+
uses: actions/upload-artifact@v3
5959
with:
6060
name: coverage
6161
path: coverage/
@@ -94,7 +94,7 @@ jobs:
9494
- name: Upload Debug Artifacts
9595
id: upload_logs
9696
if: failure()
97-
uses: actions/upload-artifact@v1
97+
uses: actions/upload-artifact@v3
9898
with:
9999
name: debug-logs
100100
path: ${{ env.LOG_PATH }}

.pre-commit-config.yaml

+16-13
Original file line numberDiff line numberDiff line change
@@ -5,48 +5,51 @@ repos:
55
- id: isort
66
# language_version: python3.6
77
- repo: https://github.com/ambv/black
8-
rev: 22.6.0
8+
rev: 22.10.0
99
hooks:
1010
- id: black
1111
# language_version: python3.6
1212
- repo: https://github.com/pre-commit/pre-commit-hooks
13-
rev: v2.0.0
13+
rev: v4.3.0
1414
hooks:
1515
- id: check-case-conflict
1616
- id: end-of-file-fixer
1717
- id: mixed-line-ending
1818
args:
1919
- --fix=lf
2020
- id: trailing-whitespace
21-
- id: flake8
22-
additional_dependencies:
23-
- flake8-bugbear>=19.3.0
24-
- flake8-builtins>=1.4.1
25-
- flake8-commas>=2.0.0
26-
- flake8-comprehensions>=2.1.0
27-
- flake8-debugger>=3.1.0
28-
- flake8-pep3101>=1.2.1
29-
# language_version: python3.6
3021
- id: pretty-format-json
3122
args:
3223
- --autofix
3324
- --indent=4
3425
- --no-sort-keys
3526
- id: check-merge-conflict
3627
- id: check-yaml
28+
- repo: https://github.com/pycqa/flake8
29+
rev: "5.0.4"
30+
hooks:
31+
- id: flake8
32+
additional_dependencies:
33+
- flake8-bugbear>=19.3.0
34+
- flake8-builtins>=1.4.1
35+
- flake8-commas>=2.0.0
36+
- flake8-comprehensions>=2.1.0
37+
- flake8-debugger>=3.1.0
38+
- flake8-pep3101>=1.2.1
39+
# language_version: python3.6
3740
- repo: https://github.com/pre-commit/pygrep-hooks
3841
rev: v1.9.0
3942
hooks:
4043
- id: python-check-blanket-noqa
4144
- id: python-check-mock-methods
4245
- id: python-no-log-warn
4346
- repo: https://github.com/PyCQA/bandit
44-
rev: 1.7.1
47+
rev: 1.7.4
4548
hooks:
4649
- id: bandit
4750
files: "^python/"
4851
- repo: https://github.com/pre-commit/mirrors-eslint
49-
rev: v8.7.0
52+
rev: v8.26.0
5053
hooks:
5154
- id: eslint
5255
args: [--fix]

0 commit comments

Comments
 (0)