Skip to content

Commit

Permalink
enforce black style
Browse files Browse the repository at this point in the history
  • Loading branch information
India Kerle committed May 8, 2024
1 parent 7f47cb3 commit b5e9ccd
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
5 changes: 4 additions & 1 deletion ojd_daps_skills/extract_skills/extract_skills.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
from ojd_daps_skills import setup_spacy_extensions
from ojd_daps_skills.extract_skills.extract_skills_utils import ExtractConfig
from ojd_daps_skills.extract_skills.multiskill_rules import (
_split_duplicate_object, _split_duplicate_verb, _split_skill_mentions)
_split_duplicate_object,
_split_duplicate_verb,
_split_skill_mentions,
)
from ojd_daps_skills.map_skills.skill_mapper import SkillsMapper
from ojd_daps_skills.map_skills.skill_mapper_utils import MapConfig
from ojd_daps_skills.utils.text_cleaning import clean_text, short_hash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
from wasabi import msg

from ojd_daps_skills import bucket_name
from ojd_daps_skills.utils.data_getters import (get_s3_resource, load_s3_data,
save_to_s3)
from ojd_daps_skills.utils.data_getters import get_s3_resource, load_s3_data, save_to_s3


def find_lev_0(code):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"""

from ojd_daps_skills import bucket_name
from ojd_daps_skills.utils.data_getters import (get_s3_resource, load_s3_data,
save_to_s3)
from ojd_daps_skills.utils.data_getters import get_s3_resource, load_s3_data, save_to_s3
from ojd_daps_skills.utils.text_cleaning import short_hash

if __name__ == "__main__":
Expand Down
5 changes: 4 additions & 1 deletion ojd_daps_skills/map_skills/skill_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@

from ojd_daps_skills import setup_spacy_extensions
from ojd_daps_skills.map_skills.skill_mapper_utils import (
MapConfig, get_most_common_code, get_top_comparisons)
MapConfig,
get_most_common_code,
get_top_comparisons,
)
from ojd_daps_skills.utils.text_cleaning import clean_text, short_hash

setup_spacy_extensions()
Expand Down
1 change: 1 addition & 0 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test cases for configuration managers.
"""

import pandas as pd
import pytest
from sklearn.pipeline import Pipeline
Expand Down
7 changes: 5 additions & 2 deletions tests/test_multiskill_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
import spacy

from ojd_daps_skills.extract_skills.multiskill_rules import (
_split_duplicate_object, _split_duplicate_verb, _split_on_and,
_split_skill_mentions)
_split_duplicate_object,
_split_duplicate_verb,
_split_on_and,
_split_skill_mentions,
)


@pytest.fixture
Expand Down
1 change: 1 addition & 0 deletions tests/test_skill_extractor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test cases for the SkillExtractor class.
"""

import pytest
from spacy.tokens import Doc

Expand Down
1 change: 1 addition & 0 deletions tests/test_skill_mapper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Test cases for the SkillsMapper class.
"""

import numpy as np
import pandas as pd
import pytest
Expand Down

0 comments on commit b5e9ccd

Please sign in to comment.