-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adiciona pre-commit, corrige e formata código
- Loading branch information
Showing
46 changed files
with
311 additions
and
179 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
repos: | ||
- repo: /~https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-case-conflict | ||
fail_fast: true | ||
- id: check-merge-conflict | ||
fail_fast: true | ||
- id: debug-statements | ||
fail_fast: true | ||
- id: detect-aws-credentials | ||
fail_fast: true | ||
args: ["--allow-missing-credentials"] | ||
- id: detect-private-key | ||
fail_fast: true | ||
|
||
- repo: /~https://github.com/astral-sh/ruff-pre-commit | ||
rev: 'v0.6.2' | ||
hooks: | ||
- id: ruff | ||
fail_fast: true | ||
args: ["--fix", "--ignore", "E501", "--select", "I"] | ||
- id: ruff-format | ||
|
||
- repo: /~https://github.com/Lucas-C/pre-commit-hooks-safety | ||
rev: v1.3.3 | ||
hooks: | ||
- id: python-safety-dependencies-check | ||
fail_fast: true | ||
files: requirements\/[a-z]+\.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
from .interfaces import TextExtractorInterface | ||
from .text_extraction import ApacheTikaTextExtractor, create_apache_tika_text_extraction | ||
|
||
__all__ = [ | ||
"ApacheTikaTextExtractor", | ||
"create_apache_tika_text_extraction", | ||
"TextExtractorInterface", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
from .interfaces import DatabaseInterface | ||
from .postgresql import PostgreSQL, create_database_interface | ||
|
||
__all__ = [ | ||
"create_database_interface", | ||
"DatabaseInterface", | ||
"PostgreSQL", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
from .interfaces import IndexInterface | ||
from .opensearch import create_index_interface | ||
|
||
__all__ = [ | ||
"create_index_interface", | ||
"IndexInterface", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
from .__main__ import ( | ||
is_debug_enabled, | ||
enable_debug_if_necessary, | ||
is_debug_enabled, | ||
) | ||
|
||
__all__ = [ | ||
"is_debug_enabled", | ||
"enable_debug_if_necessary", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pre-commit==3.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
__all__ = [ | ||
"get_segmenter", | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from .gazette_segment import GazetteSegment | ||
from .association_segmenter import AssociationSegmenter | ||
from .gazette_segment import GazetteSegment | ||
|
||
__all__ = [ | ||
"GazetteSegment", | ||
"AssociationSegmenter", | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
__all__ = [ | ||
"ALAssociacaoMunicipiosSegmenter", | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
from .digital_ocean_spaces import DigitalOceanSpaces, create_storage_interface | ||
from .interfaces import StorageInterface | ||
|
||
__all__ = [ | ||
"create_storage_interface", | ||
"DigitalOceanSpaces", | ||
"StorageInterface", | ||
] |
Oops, something went wrong.