Skip to content

Commit f6e81fd

Browse files
makrelasmakrelas
andauthored
chore(Upgrade to python 3.10 with compatibility fixes) (#189)
* upgrade to python 3.10 with compatibility fixes * duplicate-code check explanation * chore: update Python to 3.10.8 * chore: update Python to 3.10.8 Co-authored-by: makrelas <[email protected]>
1 parent f5540c4 commit f6e81fd

20 files changed

+43
-34
lines changed

.gitpod.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
image: gitpod/workspace-python-3.10:2022-10-17-21-33-26
12
tasks:
23
- init: make init && export COLUMNS=80 && gitopscli --help

.pylintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ disable=bad-continuation,
6565
missing-module-docstring,
6666
missing-class-docstring,
6767
too-many-arguments,
68-
too-many-locals
68+
too-many-locals,
69+
duplicate-code #check introduced in pylint 2.7.1, seem to usually show false-positives. There is a value in it - but not in automated pipeline usage.
6970

7071

7172
# Enable the message, report, category or checker with the given id(s). You can

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# =========
2-
FROM python:3.8-alpine AS base
2+
FROM python:3.10-alpine AS base
33

44
ENV PATH="/opt/venv/bin:$PATH"
55
RUN apk add --no-cache git

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BLACK_ARGS = -l 120 -t py37 gitopscli tests setup.py
1+
BLACK_ARGS = -l 120 -t py310 gitopscli tests setup.py
22

33
init:
44
pip3 install --editable .
@@ -16,7 +16,7 @@ lint:
1616
pylint gitopscli
1717

1818
mypy:
19-
python3 -m mypy .
19+
python3 -m mypy --install-types --non-interactive .
2020

2121
test:
2222
python3 -m pytest -vv -s --typeguard-packages=gitopscli

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Build Status](https://travis-ci.com/baloise/gitopscli.svg?branch=master)](https://travis-ci.com/baloise/gitopscli)
22
[![Latest Release)](https://img.shields.io/github/v/release/baloise/gitopscli)](https://github.com/baloise/gitopscli/releases)
33
[![Docker Pulls](https://img.shields.io/docker/pulls/baloise/gitopscli)](https://hub.docker.com/r/baloise/gitopscli/tags)
4-
[![Python: 3.8](https://img.shields.io/badge/python-3.8-yellow.svg)](https://www.python.org/downloads/release/python-380/)
4+
[![Python: 3.10](https://img.shields.io/badge/python-3.10-yellow.svg)](https://www.python.org/downloads/release/python-3108/)
55
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
66
[![Gitpod](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/baloise/gitopscli)
77
[![License](https://img.shields.io/github/license/baloise/gitopscli?color=lightgrey)](https://github.com/baloise/gitopscli/blob/master/LICENSE)

docs/commands/add-pr-comment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ usage: gitopscli add-pr-comment [-h] --username USERNAME --password PASSWORD
2323
PR_ID [--parent-id PARENT_ID] [-v [VERBOSE]]
2424
--text TEXT
2525
26-
optional arguments:
26+
options:
2727
-h, --help show this help message and exit
2828
--username USERNAME Git username (alternative: GITOPSCLI_USERNAME env
2929
variable)

docs/commands/create-pr-preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ usage: gitopscli create-pr-preview [-h] --username USERNAME --password PASSWORD
3030
--pr-id PR_ID
3131
[--parent-id PARENT_ID] [-v [VERBOSE]]
3232
33-
optional arguments:
33+
options:
3434
-h, --help show this help message and exit
3535
--username USERNAME Git username (alternative: GITOPSCLI_USERNAME env
3636
variable)

docs/commands/create-preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ usage: gitopscli create-preview [-h] --username USERNAME --password PASSWORD
4242
--preview-id PREVIEW_ID
4343
[-v [VERBOSE]]
4444
45-
optional arguments:
45+
options:
4646
-h, --help show this help message and exit
4747
--username USERNAME Git username (alternative: GITOPSCLI_USERNAME env
4848
variable)

docs/commands/delete-pr-preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ usage: gitopscli delete-pr-preview [-h] --username USERNAME --password
2929
[--expect-preview-exists [EXPECT_PREVIEW_EXISTS]]
3030
[-v [VERBOSE]]
3131
32-
optional arguments:
32+
options:
3333
-h, --help show this help message and exit
3434
--username USERNAME Git username (alternative: GITOPSCLI_USERNAME env
3535
variable)

docs/commands/delete-preview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ usage: gitopscli delete-preview [-h] --username USERNAME --password PASSWORD
2727
[--expect-preview-exists [EXPECT_PREVIEW_EXISTS]]
2828
[-v [VERBOSE]]
2929
30-
optional arguments:
30+
options:
3131
-h, --help show this help message and exit
3232
--username USERNAME Git username (alternative: GITOPSCLI_USERNAME env
3333
variable)

0 commit comments

Comments
 (0)