Skip to content

Commit 48b7c3a

Browse files
committed
Upgrade analysis dependencies to the latest version
1 parent 14f437a commit 48b7c3a

File tree

6 files changed

+41
-20
lines changed

6 files changed

+41
-20
lines changed

psqlextra/partitioning/range_strategy.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ class PostgresRangePartitioningStrategy:
99
partitioned table."""
1010

1111
@abstractmethod
12-
def to_create(self,) -> Generator[PostgresRangePartition, None, None]:
12+
def to_create(
13+
self,
14+
) -> Generator[PostgresRangePartition, None, None]:
1315
"""Generates a list of partitions to be created."""
1416

1517
@abstractmethod
16-
def to_delete(self,) -> Generator[PostgresRangePartition, None, None]:
18+
def to_delete(
19+
self,
20+
) -> Generator[PostgresRangePartition, None, None]:
1721
"""Generates a list of partitions to be deleted."""
1822

1923

psqlextra/partitioning/strategy.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ class PostgresPartitioningStrategy:
99
table."""
1010

1111
@abstractmethod
12-
def to_create(self,) -> Generator[PostgresPartition, None, None]:
12+
def to_create(
13+
self,
14+
) -> Generator[PostgresPartition, None, None]:
1315
"""Generates a list of partitions to be created."""
1416

1517
@abstractmethod
16-
def to_delete(self,) -> Generator[PostgresPartition, None, None]:
18+
def to_delete(
19+
self,
20+
) -> Generator[PostgresPartition, None, None]:
1721
"""Generates a list of partitions to be deleted."""
1822

1923

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
[tool.black]
22
line-length = 80
3+
exclude = '''
4+
(
5+
/(
6+
| .env
7+
| env
8+
| venv
9+
| tests/snapshots
10+
)/
11+
)
12+
'''

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ line_length=80
77
multi_line_output=3
88
lines_between_types=1
99
include_trailing_comma=True
10-
not_skip=__init__.py
11-
known_standard_library=dataclasses
1210
known_third_party=pytest,freezegun
11+
float_to_top=true
12+
skip_glob=tests/snapshots/*.py

setup.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ def run(self):
8383
"snapshottest==0.6.0",
8484
],
8585
"analysis": [
86-
"black==19.3b0",
87-
"flake8==3.7.7",
88-
"autoflake==1.3",
89-
"autopep8==1.4.4",
90-
"isort==4.3.20",
91-
"sl-docformatter==1.4",
86+
"black==21.10b0",
87+
"flake8==4.0.1",
88+
"autoflake==1.4",
89+
"autopep8==1.6.0",
90+
"isort==5.10.0",
91+
"docformatter==1.4",
9292
],
9393
},
9494
cmdclass={
@@ -100,7 +100,7 @@ def run(self):
100100
[
101101
[
102102
"autoflake",
103-
"--remove-all-unused-imports",
103+
"--remove-all",
104104
"-i",
105105
"-r",
106106
"setup.py",
@@ -128,16 +128,16 @@ def run(self):
128128
"Automatically sorts imports",
129129
[
130130
["isort", "setup.py"],
131-
["isort", "-rc", "psqlextra"],
132-
["isort", "-rc", "tests"],
131+
["isort", "psqlextra"],
132+
["isort", "tests"],
133133
],
134134
),
135135
"sort_imports_verify": create_command(
136136
"Verifies all imports are properly sorted.",
137137
[
138138
["isort", "-c", "setup.py"],
139-
["isort", "-c", "-rc", "psqlextra"],
140-
["isort", "-c", "-rc", "tests"],
139+
["isort", "-c", "psqlextra"],
140+
["isort", "-c", "tests"],
141141
],
142142
),
143143
"fix": create_command(

tests/test_hstore_autodetect.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ def _assert_autodetector(changes, expected):
3434
for i, expected_operation in enumerate(expected):
3535
real_operation = operations[i]
3636
_, _, real_args, real_kwargs = real_operation.field.deconstruct()
37-
_, _, expected_args, expected_kwargs = (
38-
expected_operation.field.deconstruct()
39-
)
37+
(
38+
_,
39+
_,
40+
expected_args,
41+
expected_kwargs,
42+
) = expected_operation.field.deconstruct()
4043

4144
assert real_args == expected_args
4245
assert real_kwargs == expected_kwargs

0 commit comments

Comments
 (0)