Skip to content

Commit 55998e7

Browse files
michael.yakmichaelyaakoby
authored andcommitted
Upgrade python and and all the dependencies
Target versions of dependencies were determined using `poetry show -o` which prints versions outdated and the upgrade-to version.
1 parent 504ccb3 commit 55998e7

16 files changed

+489
-1114
lines changed

.github/workflows/python_package_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
run_image:
1111
runs-on: [ubuntu-18.04]
1212
container:
13-
image: matanrubin/python-poetry:3.7
13+
image: matanrubin/python-poetry:3.9
1414

1515
env:
1616
TEST_REDIS_SERVER: True

.github/workflows/python_package_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
run_image:
1111
runs-on: [ubuntu-18.04]
1212
container:
13-
image: matanrubin/python-poetry:3.7
13+
image: matanrubin/python-poetry:3.9
1414

1515
steps:
1616
- uses: actions/checkout@v2

.pylintrc

Lines changed: 2 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ confidence=
2424
# --disable=W".
2525
disable=
2626
# Pylint Defaults
27-
print-statement,
28-
parameter-unpacking,
29-
unpacking-in-except,
30-
old-raise-syntax,
31-
backtick,
32-
long-suffix,
33-
old-ne-operator,
34-
old-octal-literal,
35-
import-star-module-level,
36-
non-ascii-bytes-literal,
3727
raw-checker-failed,
3828
bad-inline-option,
3929
locally-disabled,
@@ -42,72 +32,8 @@ disable=
4232
useless-suppression,
4333
deprecated-pragma,
4434
use-symbolic-message-instead,
45-
apply-builtin,
46-
basestring-builtin,
47-
buffer-builtin,
48-
cmp-builtin,
49-
coerce-builtin,
50-
execfile-builtin,
51-
file-builtin,
52-
long-builtin,
53-
raw_input-builtin,
54-
reduce-builtin,
55-
standarderror-builtin,
56-
unicode-builtin,
57-
xrange-builtin,
58-
coerce-method,
59-
delslice-method,
60-
getslice-method,
61-
setslice-method,
62-
no-absolute-import,
63-
old-division,
64-
dict-iter-method,
65-
dict-view-method,
66-
next-method-called,
67-
metaclass-assignment,
68-
indexing-exception,
69-
raising-string,
70-
reload-builtin,
71-
oct-method,
72-
hex-method,
73-
nonzero-method,
74-
cmp-method,
75-
input-builtin,
76-
round-builtin,
77-
intern-builtin,
78-
unichr-builtin,
79-
map-builtin-not-iterating,
80-
zip-builtin-not-iterating,
81-
range-builtin-not-iterating,
82-
filter-builtin-not-iterating,
83-
using-cmp-argument,
84-
eq-without-hash,
85-
div-method,
86-
idiv-method,
87-
rdiv-method,
88-
exception-message-attribute,
89-
invalid-str-codec,
90-
sys-max-int,
91-
bad-python3-import,
92-
deprecated-string-function,
93-
deprecated-str-translate-call,
94-
deprecated-itertools-function,
95-
deprecated-types-field,
96-
next-method-defined,
97-
dict-items-not-iterating,
98-
dict-keys-not-iterating,
99-
dict-values-not-iterating,
100-
deprecated-operator-function,
101-
deprecated-urllib-function,
102-
xreadlines-attribute,
103-
deprecated-sys-function,
104-
exception-escape,
105-
comprehension-escape,
106-
107-
# Grid Services
10835
missing-docstring,
10936
logging-fstring-interpolation,
110-
no-self-use,
11137
invalid-name,
11238
no-member, # Pylint doesn't currently support subclassing Enum and issues this warning everywhere
11339
duplicate-code, # in order to support the domain/db/api duplication such as with InverterSpec
@@ -306,8 +232,8 @@ max-module-lines=1000
306232
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
307233
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
308234
# `empty-line` allows space-only lines.
309-
no-space-check=trailing-comma,
310-
dict-separator
235+
# no-space-check=trailing-comma,
236+
# dict-separator
311237

312238
# Allow the body of a class to be on the same line as the declaration if body
313239
# contains single statement.

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ pylint:
2525
poetry run pylint --exit-zero pyctuator tests
2626

2727
mypy:
28+
poetry run pip install types-redis
29+
poetry run pip install types-requests
2830
poetry run mypy -p pyctuator -p tests
2931

3032
package:

0 commit comments

Comments
 (0)