mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Follow Flake8 pep3101 and remove modulo formatting (#7339)
* ci: Add ``flake8-pep3101`` plugin to ``pre-commit`` * refactor: Remove all modulo string formatting * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor: Remove ``flake8-pep3101`` plugin from ``pre-commit`` * revert: Revert to modulo formatting * refactor: Use f-string instead of `join` Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:

committed by
GitHub

parent
7f6e0b656f
commit
f15cc2f01c
@ -172,7 +172,7 @@ if __name__ == "__main__":
|
||||
" ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm"
|
||||
"nopqrstuvwxyz.,;!?+-*#@^'èéòà€ù=)(&%$£/\\"
|
||||
)
|
||||
generation, population, target = basic(target_str, genes_list)
|
||||
print(
|
||||
"\nGeneration: %s\nTotal Population: %s\nTarget: %s"
|
||||
% basic(target_str, genes_list)
|
||||
f"\nGeneration: {generation}\nTotal Population: {population}\nTarget: {target}"
|
||||
)
|
||||
|
Reference in New Issue
Block a user