Skip to content

Commit 1b9b873

Browse files
author
jguerreiro
committed
fix(cd): update pre-commits and release flow
1 parent a094b2b commit 1b9b873

File tree

4 files changed

+35
-9
lines changed

4 files changed

+35
-9
lines changed

.github/workflows/test-lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
6262
steps:
6363
- uses: actions/checkout@v2
64+
with:
65+
fetch-depth: 0
6466
- name: Set up Python
6567
uses: actions/setup-python@v2
6668
with:
@@ -75,3 +77,7 @@ jobs:
7577
with:
7678
user: __token__
7779
password: ${{ secrets.pypi_password }}
80+
- name: Release Notary Action
81+
uses: docker://aevea/release-notary:0.9.1
82+
env:
83+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,4 @@ secret.py
125125
secrets
126126

127127
dist/
128+
.cache_ggshield

.pre-commit-config.yaml

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,47 @@ repos:
44
rev: 20.8b1
55
hooks:
66
- id: black
7-
language_version: python3.8
8-
- repo: https://github.com/pre-commit/mirrors-isort
9-
rev: v5.7.0
7+
language_version: python3
8+
exclude: snap_
9+
10+
- repo: https://gitlab.com/pycqa/flake8
11+
rev: 3.9.0
1012
hooks:
11-
- id: isort
13+
- id: flake8
14+
15+
- repo: https://github.com/pre-commit/mirrors-mypy
16+
rev: v0.812
17+
hooks:
18+
- id: mypy
19+
1220
- repo: https://github.com/pre-commit/pre-commit-hooks
1321
rev: v3.4.0
1422
hooks:
1523
- id: check-json
1624
- id: check-added-large-files
1725
- id: check-yaml
18-
- repo: https://gitlab.com/pycqa/flake8
19-
rev: 3.8.4
26+
27+
- repo: https://github.com/pre-commit/mirrors-isort
28+
rev: v5.8.0
2029
hooks:
21-
- id: flake8
30+
- id: isort
31+
args: [--settings-path, setup.cfg]
32+
2233
- repo: https://github.com/Woile/commitizen
23-
rev: v2.13.0
34+
rev: v2.16.0
2435
hooks:
2536
- id: commitizen
2637
# don't forget to run pre-commit install --hook-type commit-msg for this hook to run
2738
stages: [commit-msg]
39+
2840
- repo: https://github.com/pre-commit/mirrors-prettier # to format JSON, YAML and markdown files among others
2941
rev: v2.2.1
3042
hooks:
3143
- id: prettier
44+
45+
- repo: https://github.com/gitguardian/gg-shield
46+
rev: v1.3.2
47+
hooks:
48+
- id: ggshield
49+
language_version: python3
50+
stages: [commit]

pygitguardian/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from .client import GGClient
33

44

5-
__version__ = "1.1.2"
5+
__version__ = "1.1.3"
66
GGClient._version = __version__
77

88
__all__ = [

0 commit comments

Comments
 (0)