From 6d35ad5e3602b01013785d8f4a0134355d1ad031 Mon Sep 17 00:00:00 2001 From: Kelvin Prado Date: Wed, 23 Oct 2024 09:56:18 -0300 Subject: [PATCH] Format files using lint-checker --- .github/pull_request_template.md | 2 ++ CODE_OF_CONDUCT.md | 24 ++++++++++-------------- src/c/GraphSearch.c | 2 +- src/python/dynamic_stack.py | 2 +- src/python/fibonacci_iterative.py | 1 - src/python/lz77.py | 1 - 6 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 41b20b84..aa427f83 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,4 +1,5 @@ Before opening a Pull Request, please read the following items: + 1. Make sure you have read the [CONTRIBUTING](../CONTRIBUTING.md) guidelines 2. Make sure no other PR is implementing the same change 3. Make sure the Continuous Integration workflows (Github Actions) are all passing @@ -7,4 +8,5 @@ Before opening a Pull Request, please read the following items: # Description + diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index da32d376..224c0402 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,4 +1,3 @@ - # Code of Conduct ## Our Pledge @@ -18,23 +17,23 @@ diverse, inclusive, and healthy community. Examples of behavior that contributes to a positive environment for our community include: -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the overall +- Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: -* The use of sexualized language or imagery, and sexual attention or advances of +- The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email address, +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities @@ -74,6 +73,3 @@ version 2.1, available at [homepage]: https://www.contributor-covenant.org [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html -[Mozilla CoC]: https://github.com/mozilla/diversity -[FAQ]: https://www.contributor-covenant.org/faq -[translations]: https://www.contributor-covenant.org/translations diff --git a/src/c/GraphSearch.c b/src/c/GraphSearch.c index e6643f29..7679dce2 100644 --- a/src/c/GraphSearch.c +++ b/src/c/GraphSearch.c @@ -109,7 +109,7 @@ int buscaEmLargura(VERTICE inicio, VERTICE destino) { int tamFila = 1; // Variável que controla o tamanho da fila VERTICE - FILA[MAX_VERTICES]; // Fila que irá guardar os vértices a serem comparados + FILA[MAX_VERTICES]; // Fila que irá guardar os vértices a serem comparados for (int i = 0; i < MAX_VERTICES; i++) { // Como a lista não é dinâmica, ela precisa ser 'limpa' primeiro FILA[i] = NULL; diff --git a/src/python/dynamic_stack.py b/src/python/dynamic_stack.py index e6743984..129b73a8 100644 --- a/src/python/dynamic_stack.py +++ b/src/python/dynamic_stack.py @@ -41,7 +41,7 @@ def show(self) -> None: def main() -> None: dynamic_stack = DynamicStack() - print(f"Push(1,2,4):") + print("Push(1,2,4):") dynamic_stack.push(1) dynamic_stack.push(2) dynamic_stack.push(4) diff --git a/src/python/fibonacci_iterative.py b/src/python/fibonacci_iterative.py index f394c049..a7ad7dc9 100755 --- a/src/python/fibonacci_iterative.py +++ b/src/python/fibonacci_iterative.py @@ -5,7 +5,6 @@ execution of algorithms in seconds """ -import functools import time diff --git a/src/python/lz77.py b/src/python/lz77.py index 249444f4..fba93b12 100644 --- a/src/python/lz77.py +++ b/src/python/lz77.py @@ -1,4 +1,3 @@ -import io import sys