Skip to content

Commit

Permalink
style: remove encoding declaration
Browse files Browse the repository at this point in the history
Redundant as PEP 3120 makes UTF-8 the default encoding
  • Loading branch information
squillero committed Jun 17, 2024
1 parent 07b08ae commit 4e4310d
Show file tree
Hide file tree
Showing 155 changed files with 2 additions and 160 deletions.
1 change: 0 additions & 1 deletion byron/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/_individual_as.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/byron.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
2 changes: 0 additions & 2 deletions byron/classes/dump.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down Expand Up @@ -26,5 +25,4 @@
# v1 / August 2023 / Squillero (GX)



# @dataclass(frozen=True, slots=True)
5 changes: 2 additions & 3 deletions byron/classes/evaluator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down Expand Up @@ -518,8 +517,8 @@ def evaluate_population(self, population: Population) -> None:
raise RuntimeError(f"Process returned empty stdout (stderr: '{result.stderr}')")
else:
results = list(filter(lambda s: bool(s), result.stdout.split("\n")))
assert (
len(results) == len(individuals)
assert len(results) == len(
individuals
), f"{PARANOIA_VALUE_ERROR}: Number of results and number of individual mismatch: found {len(results)} expected {len(individuals)}"
for ind, line in zip_longest(individuals, results):
value = [float(r) for r in line.split()]
Expand Down
1 change: 0 additions & 1 deletion byron/classes/fitness.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/frame.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/identifiable.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/individual.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/macro.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/monitor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/node.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/node_reference.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/node_view.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/parameter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/paranoid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/population.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/readymade_frames.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/readymade_macros.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/selement.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/shared.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/classes/value_bag.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/ea/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/ea/adaptive.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/ea/check.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/ea/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/ea/estimator.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/ea/selection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/ea/vanilla.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/evaluator_.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/fitness/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/fitness/basic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/fitness/reverse.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/fitness_.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/bnf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/defaults.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/framework.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/macro.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/parameter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/parameter_structural_global.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/parameter_structural_local.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/shared.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/show_element.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/framework/utilities.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/global_symbols.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/operators/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/operators/ea_tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/operators/graph_tools.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/operators/initializers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/operators/mutations.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/operators/parameter_crossovers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/operators/single_node_crossovers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#################################|###|#####################################
# __ | | #
# | |--.--.--.----.-----.-----. |===| This file is part of Byron v0.8 #
Expand Down
1 change: 0 additions & 1 deletion byron/randy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/randy/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# ______________ ______ __
# |____/|____|| \ || \\_/
# |R \_|A ||N \_||D__/ |Y
Expand Down
1 change: 0 additions & 1 deletion byron/registry.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/sys.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/tools/entropy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/tools/graph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/tools/names.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/user_messages/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/user_messages/checks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/user_messages/exception.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion byron/user_messages/messaging.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion examples/demo-parameter.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#################################|###|#####################################
# __ | | #
# | |--.--.--.----.-----.-----. |===| This file is part of Byron v0.8 #
Expand Down
1 change: 0 additions & 1 deletion examples/dummy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion examples/fitness-demo.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion examples/knapsack.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#################################|###|#####################################
# __ | | #
# | |--.--.--.----.-----.-----. |===| This file is part of Byron v0.8 #
Expand Down
1 change: 0 additions & 1 deletion examples/onemax/onemax-asm/library_arm64.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
1 change: 0 additions & 1 deletion examples/onemax/onemax-asm/library_x86_64.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
###################################|###|####################################
# _____ | | #
# | __ \--.--.----.-----.-----. |===| This file is part of Byron #
Expand Down
Loading

0 comments on commit 4e4310d

Please sign in to comment.