Skip to content

Commit d192daf

Browse files
committed
Maintenance: Test and add support for python 3.14.
1 parent 51e197f commit d192daf

20 files changed

Lines changed: 53 additions & 17 deletions

PyFunceble/cli/entry_points/pyfunceble/cli.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,18 +1281,13 @@ def platform_parser(
12811281

12821282
args = [
12831283
(
1284-
["cli_testing.testing_mode.platform_contribution"],
1284+
["--contribution"],
12851285
{
1286-
"default": get_configured_value(
1286+
"default": not get_configured_value(
12871287
"cli_testing.testing_mode.platform_contribution", value_only=True
12881288
),
1289-
"action": "store_%s"
1290-
% str(
1291-
not get_configured_value(
1292-
"cli_testing.testing_mode.platform_contribution",
1293-
value_only=True,
1294-
)
1295-
).lower(),
1289+
"action": "store_true",
1290+
"dest": "cli_testing.testing_mode.platform_contribution",
12961291
"help": argparse.SUPPRESS,
12971292
},
12981293
)

PyFunceble/cli/filesystem/printer/stdout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,13 @@ def print_interpolated_line(self):
254254
print(
255255
f"{self.STATUS2BACKGROUND_COLOR[status_to_compare]}"
256256
f"{line_to_print}"
257+
f"{colorama.Style.RESET_ALL}"
257258
)
258259
else:
259260
print(
260261
f"{self.STATUS2FORGROUND_COLOR[status_to_compare]}"
261262
f"{line_to_print}"
263+
f"{colorama.Style.RESET_ALL}"
262264
)
263265
elif self.template_to_use in self.FOREGROUND_COLORATED:
264266
print(

PyFunceble/converter/rpz_input_line2subject.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
See the License for the specific language governing permissions and
5151
limitations under the License.
5252
"""
53+
5354
# pylint: enable=line-too-long
5455

5556
from typing import Any, List

PyFunceble/converter/rpz_policy2subject.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
See the License for the specific language governing permissions and
5151
limitations under the License.
5252
"""
53+
5354
# pylint: enable=line-too-long
5455

5556
from typing import Any, List, Optional

PyFunceble/converter/subject2complements.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
See the License for the specific language governing permissions and
5151
limitations under the License.
5252
"""
53+
5354
# pylint: enable=line-too-long
5455

5556
from typing import Any, List, Optional

PyFunceble/converter/wildcard2subject.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
See the License for the specific language governing permissions and
5151
limitations under the License.
5252
"""
53+
5354
# pylint: enable=line-too-long
5455

5556
from typing import Any, Optional

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
alembic
22
colorama
33
dnspython[DOH]~=2.8.0
4-
domain2idna~=1.12.0
4+
domain2idna~=1.12.4
55
inflection
66
packaging
77
PyMySQL
@@ -12,4 +12,4 @@ requests[socks]<3
1212
setuptools>=65.5.1
1313
shtab
1414
SQLAlchemy~=2.0
15-
pyfunceble-process-manager==1.0.10
15+
pyfunceble-process-manager==1.0.11

tests/checker/reputation/reputation_test_base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ def tearDown(self) -> None:
9696
"""
9797

9898
self.tempfile.close()
99-
10099
os.unlink(self.tempfile.name)
101100

102101
del self.checker

tests/config/test_compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def test_get_merged_delete_flatten(self) -> None:
661661
config_comparison = ConfigComparison(
662662
local_config=given_local, upstream_config=given_upstream
663663
)
664-
664+
# pylint: disable=invalid-name
665665
config_comparison.DELETE_FLATTEN = [
666666
"cli_testing.file_generation.unified_results",
667667
]

tests/dataset/test_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def tearDown(self) -> None:
9595
Destroys everything needed by the tests.
9696
"""
9797

98+
self.tempfile.close()
99+
98100
del self.tempfile
99101
del self.our_dataset
100102
del self.dataset

0 commit comments

Comments
 (0)