Mixed typo fixes (#270)

This commit is contained in:
2023-10-26 19:06:45 +02:00
committed by GitHub
parent ab97d77d2d
commit 7953ba9291
5 changed files with 8 additions and 6 deletions

View File

@ -12,7 +12,7 @@ jobs:
name: Doc-Build name: Doc-Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Install prio to running the process - name: Install prior to running the process
run: | run: |
sudo apt install pandoc snapd -y sudo apt install pandoc snapd -y
sudo snap install drawio sudo snap install drawio
@ -28,7 +28,8 @@ jobs:
with: with:
version: 1.6.1 version: 1.6.1
virtualenvs-create: false virtualenvs-create: false
- run: poetry install --with doc --all-extras --without test,lint - name: Poetry install
run: poetry install --with doc --all-extras --without test,lint
- name: Doc-Build - name: Doc-Build
run: | run: |
cd documentations cd documentations

View File

@ -35,7 +35,8 @@ jobs:
- run: pre-commit autoupdate - run: pre-commit autoupdate
shell: bash shell: bash
- uses: peter-evans/create-pull-request@v5 - name: Create pull request
uses: peter-evans/create-pull-request@v5
with: with:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
base: main base: main

View File

@ -34,7 +34,7 @@ class SentimentAnalysisService:
PATH: Final[ # noqa: N806 PATH: Final[ # noqa: N806
str str
] = "src/aki_prj23_transparenzregister/utils/mongo/SentiWS/" ] = "src/aki_prj23_transparenzregister/utils/mongo/SentiWS/"
# check if vocabulary is existing, otehrwise download it # check if vocabulary is existing, otherwise download it
if not os.path.exists(PATH): if not os.path.exists(PATH):
URL: Final[ # noqa: N806 URL: Final[ # noqa: N806
str str

View File

@ -22,7 +22,7 @@ def test_ner_spacy() -> None:
def test_ner_company_list() -> None: def test_ner_company_list() -> None:
"""Mock test_ner_company.""" """Mock test_ner_company."""
# Create instance of NerAnalysisService with use_use_companylist=True # Create instance of NerAnalysisService with use_companylist=True
ner_service = NerAnalysisService( ner_service = NerAnalysisService(
use_spacy=False, use_transformer=False, use_companylist=True use_spacy=False, use_transformer=False, use_companylist=True
) )