Skip to content

Commit c285c5d

Browse files
jguerreiroJguer
authored andcommitted
chore(pygitguardian): remove old python version support.
bring standards from ggshield to pygitguardian
1 parent ba2b289 commit c285c5d

25 files changed

+374
-273
lines changed

.github/workflows/test-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2
13-
- name: Set up Python 3.8
13+
- name: Set up Python 3.9
1414
uses: actions/setup-python@v1
1515
with:
16-
python-version: 3.8
16+
python-version: 3.9
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
@@ -31,7 +31,7 @@ jobs:
3131
strategy:
3232
matrix:
3333
os: [ubuntu-latest, macos-latest, windows-latest]
34-
python-version: [3.6, 3.7, 3.8]
34+
python-version: [3.7, 3.8, 3.9]
3535
steps:
3636
- uses: actions/checkout@v2
3737
- name: Set up Python ${{ matrix.python-version }}
@@ -66,7 +66,7 @@ jobs:
6666
- name: Set up Python
6767
uses: actions/setup-python@v2
6868
with:
69-
python-version: "3.x"
69+
python-version: '3.x'
7070
- name: Install dependencies
7171
run: python -m pip install --upgrade pip setuptools wheel
7272
- name: Build distribution

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
include:
2-
- project: "gg-code/sre/gitguardian-oss"
3-
file: "/pygitguardian.yml"
2+
- project: 'gg-code/sre/gitguardian-oss'
3+
file: '/pygitguardian.yml'

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
default_stages: [commit]
22
repos:
33
- repo: https://github.com/ambv/black
4-
rev: 21.5b1
4+
rev: 21.9b0
55
hooks:
66
- id: black
77
language_version: python3
@@ -13,7 +13,7 @@ repos:
1313
- id: flake8
1414

1515
- repo: https://github.com/pre-commit/mirrors-mypy
16-
rev: v0.812
16+
rev: v0.910
1717
hooks:
1818
- id: mypy
1919

@@ -25,25 +25,25 @@ repos:
2525
- id: check-yaml
2626

2727
- repo: https://github.com/pre-commit/mirrors-isort
28-
rev: v5.8.0
28+
rev: v5.9.3
2929
hooks:
3030
- id: isort
3131
args: [--settings-path, setup.cfg]
3232

3333
- repo: https://github.com/Woile/commitizen
34-
rev: v2.17.6
34+
rev: v2.18.1
3535
hooks:
3636
- id: commitizen
3737
# don't forget to run pre-commit install --hook-type commit-msg for this hook to run
3838
stages: [commit-msg]
3939

4040
- repo: https://github.com/pre-commit/mirrors-prettier # to format JSON, YAML and markdown files among others
41-
rev: v2.3.0
41+
rev: v2.4.1
4242
hooks:
4343
- id: prettier
4444

4545
- repo: https://github.com/gitguardian/gg-shield
46-
rev: v1.5.0
46+
rev: v1.8.2
4747
hooks:
4848
- id: ggshield
4949
language_version: python3

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 88
5+
}

Pipfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ verify_ssl = true
55

66
[packages]
77
marshmallow = ">=3.5"
8-
pygitguardian = {editable = true, path = "."}
8+
pygitguardian = { editable = true, path = "." }
99
requests = ">=2"
1010

1111
[dev-packages]
12-
black = "==21.5b1"
12+
black = "==21.9b0"
1313
coverage = "*"
1414
flake8 = "*"
1515
flake8-isort = "*"
@@ -18,3 +18,4 @@ isort = "*"
1818
pre-commit = "*"
1919
pytest = "*"
2020
vcrpy = "*"
21+
mypy = "*"

0 commit comments

Comments
 (0)