Skip to content

fix(dict): Correct contaminents to another spelling#46

Open
khulnasoft-bot wants to merge 4 commits intomasterfrom
khulnasoft-bot-patch-2
Open

fix(dict): Correct contaminents to another spelling#46
khulnasoft-bot wants to merge 4 commits intomasterfrom
khulnasoft-bot-patch-2

Conversation

@khulnasoft-bot
Copy link
Collaborator

@khulnasoft-bot khulnasoft-bot commented Mar 1, 2025

Notes for Reviewers

This PR fixes #

Signed commits

  • Yes, I signed my commits.

Summary by Sourcery

Bug Fixes:

  • Corrects the spelling of "contaminents" to "contaminants" in the dictionary.

Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Mar 1, 2025

Reviewer's Guide by Sourcery

This pull request corrects the spelling of 'contaminents' to 'contaminants' in the dictionary file.

No diagrams generated as the changes look simple and do not need a visual representation.

File-Level Changes

Change Details Files
Corrected a spelling error in the dictionary.
  • Changed 'contaminents' to 'contaminants'.
codetypo/data/dictionary.txt

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!
  • Generate a plan of action for an issue: Comment @sourcery-ai plan on
    an issue to generate a plan of action for it.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai
Copy link

coderabbitai bot commented Mar 1, 2025

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

💤 Files selected but had no reviewable changes (1)
  • codetypo/data/dictionary.txt

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. Here's why:

  • It seems to have been created by a bot (hey, khulnasoft-bot!). We assume it knows what it's doing!
  • All of the files are larger than we can process. We're working on it!

@codiumai-pr-agent-free
Copy link
Contributor

codiumai-pr-agent-free bot commented Mar 1, 2025

CI Feedback 🧐

(Feedback updated until commit ac6a48a)

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: Test Windows

Failed stage: Run pytest codetypo [❌]

Failed test name: test_command

Failure summary:

The tests failed due to a consistent ValueError in the dictionary parsing functionality. The error
occurs in build_dict function in _spellchecker.py line 62, where it tries to split lines using "->"
delimiter but encounters lines with more than 2 parts. The error message "ValueError: too many
values to unpack (expected 2)" indicates the dictionary file format is not matching the expected
format of "key->value".

Key points:

  • The error occurs across multiple test cases that use dictionary functionality
  • The code expects dictionary entries in "key->value" format
  • The actual dictionary file contains entries with more than one "->" delimiter

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Microsoft Windows Server 2022
    ...
    
    337:  comma-separated list of custom dictionary files that
    338:  contain spelling corrections. If this flag is not
    339:  specified or equals "-" then the default dictionary is
    340:  used.
    341:  --builtin BUILTIN-LIST
    342:  comma-separated list of builtin dictionaries to
    343:  include (when "-D -" or no "-D" is passed). Current
    344:  options are:
    345:  - 'clear' for unambiguous errors
    346:  - 'rare' for rare (but valid) words that are likely to
    347:  be errors
    ...
    
    388:  default any alphanumeric character, the underscore,
    389:  the hyphen, and the apostrophe are used to build
    390:  words. This option cannot be specified together with
    391:  --write-changes.
    392:  --uri-regex URI_REGEX
    393:  regular expression that is used to find URIs and
    394:  emails. A default expression is provided.
    395:  -s, --summary         print summary of fixes
    396:  --count               print the number of errors as the last line of stderr
    ...
    
    467:  rootdir: D:\a\codetypo\codetypo
    468:  configfile: pyproject.toml
    469:  plugins: cov-5.0.0, dependency-0.6.0
    470:  collected 114 items
    471:  codetypo\tests\test_basic.py .FFFFsFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFs [ 37%]
    472:  FF.FFFFFF.F.FFFFF                                                        [ 52%]
    473:  codetypo\tests\test_dictionary.py .F............................ssssssss [ 85%]
    474:  ssssssssF......F                                                         [100%]
    475:  ================================== FAILURES ===================================
    476:  ________________________________ test_command _________________________________
    477:  codetypo\tests\test_basic.py:86: in test_command
    478:  assert run_codetypo(cwd=tmp_path) == 0
    479:  codetypo\tests\test_basic.py:80: in run_codetypo
    480:  return int(proc.stderr.split("\n")[-2])
    481:  E   ValueError: invalid literal for int() with base 10: 'ValueError: too many values to unpack (expected 2)'
    ...
    
    483:  codetypo\tests\test_basic.py:96: in test_basic
    484:  assert cs.main("_does_not_exist_") == 0
    485:  codetypo\tests\test_basic.py:46: in main
    486:  code = cs_.main(*args)
    487:  codetypo\_codetypo.py:1233: in main
    488:  build_dict(dictionary, misspellings, ignore_words)
    489:  codetypo\_spellchecker.py:62: in build_dict
    490:  [key, data] = line.split("->")
    491:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    493:  codetypo\tests\test_basic.py:178: in test_default_word_parsing
    494:  assert cs.main(fname) == 1, "bad"
    495:  codetypo\tests\test_basic.py:46: in main
    496:  code = cs_.main(*args)
    497:  codetypo\_codetypo.py:1233: in main
    498:  build_dict(dictionary, misspellings, ignore_words)
    499:  codetypo\_spellchecker.py:62: in build_dict
    500:  [key, data] = line.split("->")
    501:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    503:  codetypo\tests\test_basic.py:196: in test_bad_glob
    504:  assert cs.main(g) == 1
    505:  codetypo\tests\test_basic.py:46: in main
    506:  code = cs_.main(*args)
    507:  codetypo\_codetypo.py:1233: in main
    508:  build_dict(dictionary, misspellings, ignore_words)
    509:  codetypo\_spellchecker.py:62: in build_dict
    510:  [key, data] = line.split("->")
    511:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    513:  codetypo\tests\test_basic.py:239: in test_interactivity
    514:  assert cs.main(fname) == 0, "empty file"
    515:  codetypo\tests\test_basic.py:46: in main
    516:  code = cs_.main(*args)
    517:  codetypo\_codetypo.py:1233: in main
    518:  build_dict(dictionary, misspellings, ignore_words)
    519:  codetypo\_spellchecker.py:62: in build_dict
    520:  [key, data] = line.split("->")
    521:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    523:  codetypo\tests\test_basic.py:302: in test_summary
    524:  result = cs.main(fname, std=True, count=False)
    525:  codetypo\tests\test_basic.py:46: in main
    526:  code = cs_.main(*args)
    527:  codetypo\_codetypo.py:1233: in main
    528:  build_dict(dictionary, misspellings, ignore_words)
    529:  codetypo\_spellchecker.py:62: in build_dict
    530:  [key, data] = line.split("->")
    531:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    533:  codetypo\tests\test_basic.py:344: in test_ignore_dictionary
    534:  assert cs.main(bad_name) == 10
    535:  codetypo\tests\test_basic.py:46: in main
    536:  code = cs_.main(*args)
    537:  codetypo\_codetypo.py:1233: in main
    538:  build_dict(dictionary, misspellings, ignore_words)
    539:  codetypo\_spellchecker.py:62: in build_dict
    540:  [key, data] = line.split("->")
    541:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    543:  codetypo\tests\test_basic.py:375: in test_ignore_words_with_cases
    544:  assert cs.main(bad_name) == 3
    545:  codetypo\tests\test_basic.py:46: in main
    546:  code = cs_.main(*args)
    547:  codetypo\_codetypo.py:1233: in main
    548:  build_dict(dictionary, misspellings, ignore_words)
    549:  codetypo\_spellchecker.py:62: in build_dict
    550:  [key, data] = line.split("->")
    551:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    553:  codetypo\tests\test_basic.py:407: in test_ignore_word_list
    554:  assert cs.main(tmp_path) == 3
    555:  codetypo\tests\test_basic.py:46: in main
    556:  code = cs_.main(*args)
    557:  codetypo\_codetypo.py:1233: in main
    558:  build_dict(dictionary, misspellings, ignore_words)
    559:  codetypo\_spellchecker.py:62: in build_dict
    560:  [key, data] = line.split("->")
    561:  E   ValueError: too many values to unpack (expected 2)
    562:  _ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore abondon-2] _
    563:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    564:  assert cs.main(d) == expected_error_count
    565:  codetypo\tests\test_basic.py:46: in main
    566:  code = cs_.main(*args)
    567:  codetypo\_codetypo.py:1233: in main
    568:  build_dict(dictionary, misspellings, ignore_words)
    569:  codetypo\_spellchecker.py:62: in build_dict
    570:  [key, data] = line.split("->")
    571:  E   ValueError: too many values to unpack (expected 2)
    572:  _ test_inline_ignores[abandonned abondon abilty  // codetypo:ignore abondon,abilty-1] _
    573:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    574:  assert cs.main(d) == expected_error_count
    575:  codetypo\tests\test_basic.py:46: in main
    576:  code = cs_.main(*args)
    577:  codetypo\_codetypo.py:1233: in main
    578:  build_dict(dictionary, misspellings, ignore_words)
    579:  codetypo\_spellchecker.py:62: in build_dict
    580:  [key, data] = line.split("->")
    581:  E   ValueError: too many values to unpack (expected 2)
    582:  _ test_inline_ignores[abandonned abondon abilty  /* codetypo:ignore abandonned,abondon,abilty-0] _
    583:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    584:  assert cs.main(d) == expected_error_count
    585:  codetypo\tests\test_basic.py:46: in main
    586:  code = cs_.main(*args)
    587:  codetypo\_codetypo.py:1233: in main
    588:  build_dict(dictionary, misspellings, ignore_words)
    589:  codetypo\_spellchecker.py:62: in build_dict
    590:  [key, data] = line.split("->")
    591:  E   ValueError: too many values to unpack (expected 2)
    592:  _ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore nomenklatur-3] _
    593:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    594:  assert cs.main(d) == expected_error_count
    595:  codetypo\tests\test_basic.py:46: in main
    596:  code = cs_.main(*args)
    597:  codetypo\_codetypo.py:1233: in main
    598:  build_dict(dictionary, misspellings, ignore_words)
    599:  codetypo\_spellchecker.py:62: in build_dict
    600:  [key, data] = line.split("->")
    601:  E   ValueError: too many values to unpack (expected 2)
    602:  ____ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore -0] _____
    603:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    604:  assert cs.main(d) == expected_error_count
    605:  codetypo\tests\test_basic.py:46: in main
    606:  code = cs_.main(*args)
    607:  codetypo\_codetypo.py:1233: in main
    608:  build_dict(dictionary, misspellings, ignore_words)
    609:  codetypo\_spellchecker.py:62: in build_dict
    610:  [key, data] = line.split("->")
    611:  E   ValueError: too many values to unpack (expected 2)
    612:  _____ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore-0] _____
    613:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    614:  assert cs.main(d) == expected_error_count
    615:  codetypo\tests\test_basic.py:46: in main
    616:  code = cs_.main(*args)
    617:  codetypo\_codetypo.py:1233: in main
    618:  build_dict(dictionary, misspellings, ignore_words)
    619:  codetypo\_spellchecker.py:62: in build_dict
    620:  [key, data] = line.split("->")
    621:  E   ValueError: too many values to unpack (expected 2)
    622:  ____ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore\n-0] ____
    623:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    624:  assert cs.main(d) == expected_error_count
    625:  codetypo\tests\test_basic.py:46: in main
    626:  code = cs_.main(*args)
    627:  codetypo\_codetypo.py:1233: in main
    628:  build_dict(dictionary, misspellings, ignore_words)
    629:  codetypo\_spellchecker.py:62: in build_dict
    630:  [key, data] = line.split("->")
    631:  E   ValueError: too many values to unpack (expected 2)
    632:  ___ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore\r\n-0] ___
    633:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    634:  assert cs.main(d) == expected_error_count
    635:  codetypo\tests\test_basic.py:46: in main
    636:  code = cs_.main(*args)
    637:  codetypo\_codetypo.py:1233: in main
    638:  build_dict(dictionary, misspellings, ignore_words)
    639:  codetypo\_spellchecker.py:62: in build_dict
    640:  [key, data] = line.split("->")
    641:  E   ValueError: too many values to unpack (expected 2)
    642:  _ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore  # noqa: E501\n-0] _
    643:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    644:  assert cs.main(d) == expected_error_count
    645:  codetypo\tests\test_basic.py:46: in main
    646:  code = cs_.main(*args)
    647:  codetypo\_codetypo.py:1233: in main
    648:  build_dict(dictionary, misspellings, ignore_words)
    649:  codetypo\_spellchecker.py:62: in build_dict
    650:  [key, data] = line.split("->")
    651:  E   ValueError: too many values to unpack (expected 2)
    652:  _ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore # noqa: E501\n-0] _
    653:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    654:  assert cs.main(d) == expected_error_count
    655:  codetypo\tests\test_basic.py:46: in main
    656:  code = cs_.main(*args)
    657:  codetypo\_codetypo.py:1233: in main
    658:  build_dict(dictionary, misspellings, ignore_words)
    659:  codetypo\_spellchecker.py:62: in build_dict
    660:  [key, data] = line.split("->")
    661:  E   ValueError: too many values to unpack (expected 2)
    662:  _ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore# noqa: E501\n-0] _
    663:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    664:  assert cs.main(d) == expected_error_count
    665:  codetypo\tests\test_basic.py:46: in main
    666:  code = cs_.main(*args)
    667:  codetypo\_codetypo.py:1233: in main
    668:  build_dict(dictionary, misspellings, ignore_words)
    669:  codetypo\_spellchecker.py:62: in build_dict
    670:  [key, data] = line.split("->")
    671:  E   ValueError: too many values to unpack (expected 2)
    672:  _ test_inline_ignores[abandonned abondon abilty  # codetypo:ignore, noqa: E501\n-0] _
    673:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    674:  assert cs.main(d) == expected_error_count
    675:  codetypo\tests\test_basic.py:46: in main
    676:  code = cs_.main(*args)
    677:  codetypo\_codetypo.py:1233: in main
    678:  build_dict(dictionary, misspellings, ignore_words)
    679:  codetypo\_spellchecker.py:62: in build_dict
    680:  [key, data] = line.split("->")
    681:  E   ValueError: too many values to unpack (expected 2)
    682:  ____ test_inline_ignores[abandonned abondon abilty  #codetypo:ignore\n-0] _____
    683:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    684:  assert cs.main(d) == expected_error_count
    685:  codetypo\tests\test_basic.py:46: in main
    686:  code = cs_.main(*args)
    687:  codetypo\_codetypo.py:1233: in main
    688:  build_dict(dictionary, misspellings, ignore_words)
    689:  codetypo\_spellchecker.py:62: in build_dict
    690:  [key, data] = line.split("->")
    691:  E   ValueError: too many values to unpack (expected 2)
    692:  _ test_inline_ignores[abandonned abondon abilty  # codetypo:ignorenoqa: E501\n-3] _
    693:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    694:  assert cs.main(d) == expected_error_count
    695:  codetypo\tests\test_basic.py:46: in main
    696:  code = cs_.main(*args)
    697:  codetypo\_codetypo.py:1233: in main
    698:  build_dict(dictionary, misspellings, ignore_words)
    699:  codetypo\_spellchecker.py:62: in build_dict
    700:  [key, data] = line.split("->")
    701:  E   ValueError: too many values to unpack (expected 2)
    702:  _____ test_inline_ignores[abandonned abondon abilty  codetypo:ignore\n-3] _____
    703:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    704:  assert cs.main(d) == expected_error_count
    705:  codetypo\tests\test_basic.py:46: in main
    706:  code = cs_.main(*args)
    707:  codetypo\_codetypo.py:1233: in main
    708:  build_dict(dictionary, misspellings, ignore_words)
    709:  codetypo\_spellchecker.py:62: in build_dict
    710:  [key, data] = line.split("->")
    711:  E   ValueError: too many values to unpack (expected 2)
    712:  _____ test_inline_ignores[abandonned abondon abilty codetypo:ignore\n-3] ______
    713:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    714:  assert cs.main(d) == expected_error_count
    715:  codetypo\tests\test_basic.py:46: in main
    716:  code = cs_.main(*args)
    717:  codetypo\_codetypo.py:1233: in main
    718:  build_dict(dictionary, misspellings, ignore_words)
    719:  codetypo\_spellchecker.py:62: in build_dict
    720:  [key, data] = line.split("->")
    721:  E   ValueError: too many values to unpack (expected 2)
    722:  ____ test_inline_ignores[abandonned abondon abilty  # codetypo:igore\n-4] _____
    723:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    724:  assert cs.main(d) == expected_error_count
    725:  codetypo\tests\test_basic.py:46: in main
    726:  code = cs_.main(*args)
    727:  codetypo\_codetypo.py:1233: in main
    728:  build_dict(dictionary, misspellings, ignore_words)
    729:  codetypo\_spellchecker.py:62: in build_dict
    730:  [key, data] = line.split("->")
    731:  E   ValueError: too many values to unpack (expected 2)
    732:  ____ test_inline_ignores[abandonned abondon abilty ' codetypo:ignore\n-0] _____
    733:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    734:  assert cs.main(d) == expected_error_count
    735:  codetypo\tests\test_basic.py:46: in main
    736:  code = cs_.main(*args)
    737:  codetypo\_codetypo.py:1233: in main
    738:  build_dict(dictionary, misspellings, ignore_words)
    739:  codetypo\_spellchecker.py:62: in build_dict
    740:  [key, data] = line.split("->")
    741:  E   ValueError: too many values to unpack (expected 2)
    742:  ____ test_inline_ignores[abandonned abondon abilty " codetypo:ignore\n-0] _____
    743:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    744:  assert cs.main(d) == expected_error_count
    745:  codetypo\tests\test_basic.py:46: in main
    746:  code = cs_.main(*args)
    747:  codetypo\_codetypo.py:1233: in main
    748:  build_dict(dictionary, misspellings, ignore_words)
    749:  codetypo\_spellchecker.py:62: in build_dict
    750:  [key, data] = line.split("->")
    751:  E   ValueError: too many values to unpack (expected 2)
    752:  ____ test_inline_ignores[abandonned abondon abilty ;; codetypo:ignore\n-0] ____
    753:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    754:  assert cs.main(d) == expected_error_count
    755:  codetypo\tests\test_basic.py:46: in main
    756:  code = cs_.main(*args)
    757:  codetypo\_codetypo.py:1233: in main
    758:  build_dict(dictionary, misspellings, ignore_words)
    759:  codetypo\_spellchecker.py:62: in build_dict
    760:  [key, data] = line.split("->")
    761:  E   ValueError: too many values to unpack (expected 2)
    762:  __ test_inline_ignores[abandonned abondon abilty /* codetypo:ignore */\n-0] ___
    763:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    764:  assert cs.main(d) == expected_error_count
    765:  codetypo\tests\test_basic.py:46: in main
    766:  code = cs_.main(*args)
    767:  codetypo\_codetypo.py:1233: in main
    768:  build_dict(dictionary, misspellings, ignore_words)
    769:  codetypo\_spellchecker.py:62: in build_dict
    770:  [key, data] = line.split("->")
    771:  E   ValueError: too many values to unpack (expected 2)
    772:  _ test_inline_ignores[You could also use line based igore ( codetypo:ignore ) to igore -0] _
    773:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    774:  assert cs.main(d) == expected_error_count
    775:  codetypo\tests\test_basic.py:46: in main
    776:  code = cs_.main(*args)
    777:  codetypo\_codetypo.py:1233: in main
    778:  build_dict(dictionary, misspellings, ignore_words)
    779:  codetypo\_spellchecker.py:62: in build_dict
    780:  [key, data] = line.split("->")
    781:  E   ValueError: too many values to unpack (expected 2)
    782:  _ test_inline_ignores[You could also use line based igore (codetypo:ignore) to igore -0] _
    783:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    784:  assert cs.main(d) == expected_error_count
    785:  codetypo\tests\test_basic.py:46: in main
    786:  code = cs_.main(*args)
    787:  codetypo\_codetypo.py:1233: in main
    788:  build_dict(dictionary, misspellings, ignore_words)
    789:  codetypo\_spellchecker.py:62: in build_dict
    790:  [key, data] = line.split("->")
    791:  E   ValueError: too many values to unpack (expected 2)
    792:  _ test_inline_ignores[You could also use line based igore (codetypo:ignore igore) to igore -0] _
    793:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    794:  assert cs.main(d) == expected_error_count
    795:  codetypo\tests\test_basic.py:46: in main
    796:  code = cs_.main(*args)
    797:  codetypo\_codetypo.py:1233: in main
    798:  build_dict(dictionary, misspellings, ignore_words)
    799:  codetypo\_spellchecker.py:62: in build_dict
    800:  [key, data] = line.split("->")
    801:  E   ValueError: too many values to unpack (expected 2)
    802:  _ test_inline_ignores[You could also use line based igore (codetypo:ignore igare) to igore -2] _
    803:  codetypo\tests\test_basic.py:469: in test_inline_ignores
    804:  assert cs.main(d) == expected_error_count
    805:  codetypo\tests\test_basic.py:46: in main
    806:  code = cs_.main(*args)
    807:  codetypo\_codetypo.py:1233: in main
    808:  build_dict(dictionary, misspellings, ignore_words)
    809:  codetypo\_spellchecker.py:62: in build_dict
    810:  [key, data] = line.split("->")
    811:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    813:  codetypo\tests\test_basic.py:478: in test_custom_regex
    814:  assert cs.main(tmp_path) == 0
    815:  codetypo\tests\test_basic.py:46: in main
    816:  code = cs_.main(*args)
    817:  codetypo\_codetypo.py:1233: in main
    818:  build_dict(dictionary, misspellings, ignore_words)
    819:  codetypo\_spellchecker.py:62: in build_dict
    820:  [key, data] = line.split("->")
    821:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    823:  codetypo\tests\test_basic.py:504: in test_exclude_file
    824:  assert cs.main(bad_name) == 18
    825:  codetypo\tests\test_basic.py:46: in main
    826:  code = cs_.main(*args)
    827:  codetypo\_codetypo.py:1233: in main
    828:  build_dict(dictionary, misspellings, ignore_words)
    829:  codetypo\_spellchecker.py:62: in build_dict
    830:  [key, data] = line.split("->")
    831:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    833:  codetypo\tests\test_basic.py:533: in test_encoding
    834:  assert cs.main(fname) == 0
    835:  codetypo\tests\test_basic.py:46: in main
    836:  code = cs_.main(*args)
    837:  codetypo\_codetypo.py:1233: in main
    838:  build_dict(dictionary, misspellings, ignore_words)
    839:  codetypo\_spellchecker.py:62: in build_dict
    840:  [key, data] = line.split("->")
    841:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    843:  codetypo\tests\test_basic.py:579: in test_unknown_encoding_chardet
    844:  assert cs.main("--hard-encoding-detection", fname) == 0
    845:  codetypo\tests\test_basic.py:46: in main
    846:  code = cs_.main(*args)
    847:  codetypo\_codetypo.py:1233: in main
    848:  build_dict(dictionary, misspellings, ignore_words)
    849:  codetypo\_spellchecker.py:62: in build_dict
    850:  [key, data] = line.split("->")
    851:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    853:  codetypo\tests\test_basic.py:589: in test_ignore
    854:  assert cs.main(tmp_path) == 0
    855:  codetypo\tests\test_basic.py:46: in main
    856:  code = cs_.main(*args)
    857:  codetypo\_codetypo.py:1233: in main
    858:  build_dict(dictionary, misspellings, ignore_words)
    859:  codetypo\_spellchecker.py:62: in build_dict
    860:  [key, data] = line.split("->")
    861:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    863:  codetypo\tests\test_basic.py:619: in test_check_filename
    864:  assert cs.main("-f", tmp_path) == 1
    865:  codetypo\tests\test_basic.py:46: in main
    866:  code = cs_.main(*args)
    867:  codetypo\_codetypo.py:1233: in main
    868:  build_dict(dictionary, misspellings, ignore_words)
    869:  codetypo\_spellchecker.py:62: in build_dict
    870:  [key, data] = line.split("->")
    871:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    873:  codetypo\tests\test_basic.py:653: in test_check_hidden
    874:  assert cs.main(fname) == 1
    875:  codetypo\tests\test_basic.py:46: in main
    876:  code = cs_.main(*args)
    877:  codetypo\_codetypo.py:1233: in main
    878:  build_dict(dictionary, misspellings, ignore_words)
    879:  codetypo\_spellchecker.py:62: in build_dict
    880:  [key, data] = line.split("->")
    881:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    883:  codetypo\tests\test_basic.py:744: in test_case_handling
    884:  assert cs.main(fname) == 0
    885:  codetypo\tests\test_basic.py:46: in main
    886:  code = cs_.main(*args)
    887:  codetypo\_codetypo.py:1233: in main
    888:  build_dict(dictionary, misspellings, ignore_words)
    889:  codetypo\_spellchecker.py:62: in build_dict
    890:  [key, data] = line.split("->")
    891:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    893:  codetypo\tests\test_basic.py:834: in test_context
    894:  result = cs.main("-C", "1", tmp_path, std=True)
    895:  codetypo\tests\test_basic.py:46: in main
    896:  code = cs_.main(*args)
    897:  codetypo\_codetypo.py:1233: in main
    898:  build_dict(dictionary, misspellings, ignore_words)
    899:  codetypo\_spellchecker.py:62: in build_dict
    900:  [key, data] = line.split("->")
    901:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    903:  codetypo\tests\test_basic.py:923: in test_ignore_regex_option
    904:  assert cs.main(fname) == 1
    905:  codetypo\tests\test_basic.py:46: in main
    906:  code = cs_.main(*args)
    907:  codetypo\_codetypo.py:1233: in main
    908:  build_dict(dictionary, misspellings, ignore_words)
    909:  codetypo\_spellchecker.py:62: in build_dict
    910:  [key, data] = line.split("->")
    911:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    913:  codetypo\tests\test_basic.py:969: in test_ignore_multiline_regex_option
    914:  assert cs.main(fname) == 4
    915:  codetypo\tests\test_basic.py:46: in main
    916:  code = cs_.main(*args)
    917:  codetypo\_codetypo.py:1233: in main
    918:  build_dict(dictionary, misspellings, ignore_words)
    919:  codetypo\_spellchecker.py:62: in build_dict
    920:  [key, data] = line.split("->")
    921:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    923:  codetypo\tests\test_basic.py:997: in test_uri_regex_option
    924:  assert cs.main(fname) == 1
    925:  codetypo\tests\test_basic.py:46: in main
    926:  code = cs_.main(*args)
    927:  codetypo\_codetypo.py:1233: in main
    928:  build_dict(dictionary, misspellings, ignore_words)
    929:  codetypo\_spellchecker.py:62: in build_dict
    930:  [key, data] = line.split("->")
    931:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    933:  codetypo\tests\test_basic.py:1026: in test_uri_ignore_words_list_option_uri
    934:  assert cs.main(fname) == 1
    935:  codetypo\tests\test_basic.py:46: in main
    936:  code = cs_.main(*args)
    937:  codetypo\_codetypo.py:1233: in main
    938:  build_dict(dictionary, misspellings, ignore_words)
    939:  codetypo\_spellchecker.py:62: in build_dict
    940:  [key, data] = line.split("->")
    941:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    943:  codetypo\tests\test_basic.py:1091: in test_uri_ignore_words_list_option_email
    944:  assert cs.main(fname) == 1
    945:  codetypo\tests\test_basic.py:46: in main
    946:  code = cs_.main(*args)
    947:  codetypo\_codetypo.py:1233: in main
    948:  build_dict(dictionary, misspellings, ignore_words)
    949:  codetypo\_spellchecker.py:62: in build_dict
    950:  [key, data] = line.split("->")
    951:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    953:  codetypo\tests\test_basic.py:1243: in test_quiet_level_32
    954:  result = cs.main(str(d), *args, "--quiet-level=32", std=True)
    955:  codetypo\tests\test_basic.py:46: in main
    956:  code = cs_.main(*args)
    957:  codetypo\_codetypo.py:1233: in main
    958:  build_dict(dictionary, misspellings, ignore_words)
    959:  codetypo\_spellchecker.py:62: in build_dict
    960:  [key, data] = line.split("->")
    961:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    963:  codetypo\tests\test_basic.py:1293: in test_config_toml
    964:  result = cs.main(d, "--check-filenames", count=True, std=True)
    965:  codetypo\tests\test_basic.py:46: in main
    966:  code = cs_.main(*args)
    967:  codetypo\_codetypo.py:1233: in main
    968:  build_dict(dictionary, misspellings, ignore_words)
    969:  codetypo\_spellchecker.py:62: in build_dict
    970:  [key, data] = line.split("->")
    971:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    973:  codetypo\tests\test_basic.py:1293: in test_config_toml
    974:  result = cs.main(d, "--check-filenames", count=True, std=True)
    975:  codetypo\tests\test_basic.py:46: in main
    976:  code = cs_.main(*args)
    977:  codetypo\_codetypo.py:1233: in main
    978:  build_dict(dictionary, misspellings, ignore_words)
    979:  codetypo\_spellchecker.py:62: in build_dict
    980:  [key, data] = line.split("->")
    981:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    983:  codetypo\tests\test_basic.py:1293: in test_config_toml
    984:  result = cs.main(d, "--check-filenames", count=True, std=True)
    985:  codetypo\tests\test_basic.py:46: in main
    986:  code = cs_.main(*args)
    987:  codetypo\_codetypo.py:1233: in main
    988:  build_dict(dictionary, misspellings, ignore_words)
    989:  codetypo\_spellchecker.py:62: in build_dict
    990:  [key, data] = line.split("->")
    991:  E   ValueError: too many values to unpack (expected 2)
    ...
    
    993:  codetypo\tests\test_basic.py:1293: in test_config_toml
    994:  result = cs.main(d, "--check-filenames", count=True, std=True)
    995:  codetypo\tests\test_basic.py:46: in main
    996:  code = cs_.main(*args)
    997:  codetypo\_codetypo.py:1233: in main
    998:  build_dict(dictionary, misspellings, ignore_words)
    999:  codetypo\_spellchecker.py:62: in build_dict
    1000:  [key, data] = line.split("->")
    1001:  E   ValueError: too many values to unpack (expected 2)
    1002:  _________________________________ test_stdin __________________________________
    1003:  codetypo\tests\test_basic.py:1407: in test_stdin
    1004:  assert run_codetypo_stdin(text, args=args, cwd=tmp_path) == input_file_lines * (
    1005:  E   AssertionError: assert 0 == (4 * (2 - 1))
    1006:  E    +  where 0 = run_codetypo_stdin('abandonned\nabandonned\nabandonned\nabandonned\n', args=('--stdin-single-line',), cwd=WindowsPath('C:/Users/runneradmin/AppData/Local/Temp/pytest-of-runneradmin/pytest-0/test_stdin0'))
    1007:  E    +  and   1 = int(True)
    1008:  _ test_dictionary_formatting[D:\\a\\codetypo\\codetypo\\codetypo\\tests\\..\\data\\dictionary.txt-in_aspell0-in_dictionary0] _
    1009:  codetypo\tests\test_dictionary.py:71: in test_dictionary_formatting
    1010:  err, rep = line.split("->")
    1011:  E   ValueError: too many values to unpack (expected 2)
    1012:  _ test_dictionary_looping[D:\\a\\codetypo\\codetypo\\codetypo\\tests\\..\\data\\dictionary.txt-in_aspell0-in_dictionary0] _
    1013:  codetypo\tests\test_dictionary.py:308: in test_dictionary_looping
    1014:  err, rep = line.split("->")
    1015:  E   ValueError: too many values to unpack (expected 2)
    1016:  ________________________________ test_ran_all _________________________________
    1017:  codetypo\tests\test_dictionary.py:373: in test_ran_all
    1018:  assert (f1, f2) in global_pairs
    1019:  E   AssertionError: assert ('dictionary.txt', 'dictionary.txt') in {('dictionary_code.txt', 'dictionary_code.txt'), ('dictionary_code.txt', 'dictionary_en-GB_to_en-US.txt'), ('dictionar...nary_names.txt'), ('dictionary_code.txt', 'dictionary_rare.txt'), ('dictionary_code.txt', 'dictionary_usage.txt'), ...}
    1020:  -------- generated xml file: D:\a\codetypo\codetypo\junit-results.xml ---------
    1021:  =========================== short test summary info ===========================
    1022:  SKIPPED [1] codetypo\tests\test_basic.py:210: Only supported on Linux
    1023:  SKIPPED [1] codetypo\tests\test_basic.py:628: requires os.mkfifo
    1024:  SKIPPED [16] codetypo\tests\test_dictionary.py:223: requires aspell-en
    1025:  ================== 57 failed, 39 passed, 18 skipped in 5.92s ==================
    1026:  ##[error]Process completed with exit code 1.
    

    pre-commit-ci bot and others added 3 commits March 1, 2025 00:08
    Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
    Signed-off-by: KhulnaSoft bot <43526132+khulnasoft-bot@users.noreply.github.com>
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Labels

    None yet

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    1 participant