-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from KennethEnevoldsen/package_update
Added pre-config workflows
- Loading branch information
Showing
41 changed files
with
273 additions
and
235 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
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,31 @@ | ||
default_stages: [commit, push] | ||
|
||
repos: | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
args: ["--profile", "black", "--filter-files"] | ||
|
||
- repo: https://github.com/asottile/add-trailing-comma | ||
rev: v2.2.3 | ||
hooks: | ||
- id: add-trailing-comma | ||
|
||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v2.34.0 | ||
hooks: | ||
- id: pyupgrade | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3.8 | ||
|
||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
args: [--config, setup.cfg] |
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,57 +1,52 @@ | ||
from .about import __version__, __download_url__, __title__ # noqa | ||
|
||
from .util import augmenters, docs, texts, keyboards, load, meta # noqa | ||
from .about import __download_url__, __title__, __version__ # noqa | ||
from .augment_utilities import set_doc_level # noqa | ||
from .augment_utilities import combine, repeat, yield_original # noqa | ||
|
||
# import augmenters | ||
from .character import create_char_random_augmenter_v1 # noqa | ||
from .character import create_char_replace_augmenter_v1 # noqa | ||
from .character import create_char_swap_augmenter_v1 # noqa | ||
from .character import ( # noqa | ||
create_char_replace_augmenter_v1, | ||
create_char_swap_augmenter_v1, | ||
create_char_random_augmenter_v1, | ||
create_keystroke_error_augmenter_v1, | ||
create_random_casing_augmenter_v1, | ||
create_remove_spacing_augmenter_v1, | ||
) | ||
from .doc import create_paragraph_subset_augmenter_v1 # noqa | ||
from .doc import create_spongebob_augmenter_v1 # noqa | ||
from .doc import create_upper_casing_augmenter_v1 # noqa | ||
from .lang import create_da_historical_noun_casing_augmenter_v1 # noqa | ||
from .lang import create_da_æøå_replace_augmenter_v1 # noqa | ||
from .lang import create_mk # noqa | ||
from .lang import ( # noqa | ||
create_qwerty_da, | ||
create_qwerty_de, | ||
create_qwerty_el, | ||
create_qwerty_en, | ||
create_qwerty_es, | ||
create_qwerty_fr, | ||
create_qwerty_it, | ||
create_qwerty_lt, | ||
create_qwerty_nb, | ||
create_qwerty_nl, | ||
create_qwerty_pl, | ||
create_qwerty_pt, | ||
create_qwerty_ro, | ||
create_ru, | ||
) | ||
from .span import create_ent_augmenter_v1 # noqa | ||
from .span import create_ent_format_augmenter_v1 # noqa | ||
from .span import create_per_replace_augmenter_v1 # noqa | ||
from .token import create_conditional_token_casing_augmenter_v1 # noqa | ||
from .token import create_duplicate_token_augmenter_v1 # noqa | ||
from .token import create_letter_spacing_augmenter_v1 # noqa | ||
from .token import ( # noqa | ||
create_conditional_token_casing_augmenter_v1, | ||
create_token_swap_augmenter_v1, | ||
create_random_synonym_insertion_augmenter_v1, | ||
create_spacing_insertion_augmenter_v1, | ||
create_letter_spacing_augmenter_v1, | ||
create_wordnet_synonym_augmenter_v1, | ||
create_token_replace_augmenter_v1, | ||
create_starting_case_augmenter_v1, | ||
create_token_insert_random_augmenter_v1, | ||
create_token_insert_augmenter_v1, | ||
create_random_synonym_insertion_augmenter_v1, | ||
create_duplicate_token_augmenter_v1, | ||
) | ||
from .span import ( # noqa | ||
create_per_replace_augmenter_v1, | ||
create_ent_format_augmenter_v1, | ||
create_ent_augmenter_v1, | ||
) | ||
from .doc import ( # noqa | ||
create_upper_casing_augmenter_v1, | ||
create_spongebob_augmenter_v1, | ||
create_paragraph_subset_augmenter_v1, | ||
) | ||
from .lang import ( # noqa | ||
create_ru, | ||
create_qwerty_ro, | ||
create_qwerty_pt, | ||
create_qwerty_pl, | ||
create_qwerty_nl, | ||
create_qwerty_nb, | ||
create_mk, | ||
create_qwerty_lt, | ||
create_qwerty_it, | ||
create_qwerty_fr, | ||
create_qwerty_es, | ||
create_qwerty_en, | ||
create_qwerty_el, | ||
create_qwerty_de, | ||
create_da_historical_noun_casing_augmenter_v1, | ||
create_da_æøå_replace_augmenter_v1, | ||
create_qwerty_da, | ||
create_token_insert_random_augmenter_v1, | ||
create_token_replace_augmenter_v1, | ||
create_token_swap_augmenter_v1, | ||
create_wordnet_synonym_augmenter_v1, | ||
) | ||
|
||
from .augment_utilities import combine, set_doc_level, yield_original, repeat # noqa | ||
from .util import augmenters, docs, keyboards, load, meta, texts # noqa |
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
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,5 +1,3 @@ | ||
from .casing import ( | ||
create_spongebob_augmenter_v1, | ||
create_upper_casing_augmenter_v1, | ||
) # noqa | ||
from .casing import create_spongebob_augmenter_v1 # noqa | ||
from .casing import create_upper_casing_augmenter_v1 # noqa | ||
from .subset import create_paragraph_subset_augmenter_v1 # noqa |
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
from .augmenters import ( # noqa | ||
create_da_historical_noun_casing_augmenter_v1, | ||
create_da_æøå_replace_augmenter_v1, | ||
) | ||
|
||
from .augmenters import create_da_historical_noun_casing_augmenter_v1 # noqa | ||
from .augmenters import create_da_æøå_replace_augmenter_v1 # noqa | ||
from .keyboard import create_qwerty_da # noqa |
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,5 +1,3 @@ | ||
from .entities import ( # noqa | ||
create_ent_augmenter_v1, | ||
create_ent_format_augmenter_v1, | ||
create_per_replace_augmenter_v1, | ||
) | ||
from .entities import create_ent_augmenter_v1 # noqa | ||
from .entities import create_ent_format_augmenter_v1 # noqa | ||
from .entities import create_per_replace_augmenter_v1 # noqa |
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
Oops, something went wrong.
62eb860
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report