Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pre-commit-ci[bot]
Copy link
Contributor

@pre-commit-ci pre-commit-ci bot commented Jan 13, 2025

@pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from cd1c7b4 to 8e9cdb9 Compare January 13, 2025 23:29
Copy link

sourcery-ai bot commented Jan 13, 2025

Reviewer's Guide by Sourcery

This pull request updates the ruff-pre-commit hook from v0.8.6 to v0.9.1.

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

File-Level Changes

Change Details Files
Update the ruff-pre-commit hook to v0.9.1
  • The rev field has been updated from v0.8.6 to v0.9.1
.pre-commit-config.yaml

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.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a 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. You can also use
    this command to specify where the summary should be inserted.

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

Copy link

coderabbitai bot commented Jan 13, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

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. (Beta)
  • @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

@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. It seems to have been created by a bot (hey, pre-commit-ci[bot]!). We assume it knows what it's doing!

Copy link

codiumai-pr-agent-free bot commented Jan 13, 2025

CI Failure Feedback 🧐

(Checks updated until commit d2e21c7)

Action: 3.11

Failed stage: Run make check [❌]

Failure summary:

The action failed during the pre-commit checks due to a Git fetch error:

  • Unable to access the repository 'https://github.com/abravalheri/validate-pyproject' due to a GitHub
    server error (500)
  • This occurred while initializing the pre-commit environment for validate-pyproject hook
  • The error caused the make ruff command to fail with exit code 2

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    214:  aspell-autobuildhash: processing: en [en_US-wo_accents-only].
    215:  Running kernel seems to be up-to-date.
    216:  No services need to be restarted.
    217:  No containers need to be restarted.
    218:  No user sessions are running outdated binaries.
    219:  No VM guests are running outdated hypervisor (qemu) binaries on this host.
    220:  ##[group]Run python --version  # just to check
    221:  �[36;1mpython --version  # just to check�[0m
    222:  �[36;1mpip install --upgrade pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors�[0m
    ...
    
    511:  comma-separated list of custom dictionary files that
    512:  contain spelling corrections. If this flag is not
    513:  specified or equals "-" then the default dictionary is
    514:  used.
    515:  --builtin BUILTIN-LIST
    516:  comma-separated list of builtin dictionaries to
    517:  include (when "-D -" or no "-D" is passed). Current
    518:  options are:
    519:  - 'clear' for unambiguous errors
    520:  - 'rare' for rare (but valid) words that are likely to
    521:  be errors
    ...
    
    562:  default any alphanumeric character, the underscore,
    563:  the hyphen, and the apostrophe are used to build
    564:  words. This option cannot be specified together with
    565:  --write-changes.
    566:  --uri-regex URI_REGEX
    567:  regular expression that is used to find URIs and
    568:  emails. A default expression is provided.
    569:  -s, --summary         print summary of fixes
    570:  --count               print the number of errors as the last line of stderr
    ...
    
    653:  -- generated xml file: /home/runner/work/codetypo/codetypo/junit-results.xml ---
    654:  ============================= 54 passed in 29.39s ==============================
    655:  python -m build -o /tmp/tmp.DdNmvhiBJb
    656:  * Creating isolated environment: venv+pip...
    657:  * Installing packages in isolated environment:
    658:  - setuptools>=64
    659:  - setuptools_scm[toml]>=6.2, != 8.0.0
    660:  * Getting build dependencies for sdist...
    661:  /tmp/build-env-ov1nmbwv/lib/python3.11/site-packages/setuptools_scm/git.py:167: UserWarning: "/home/runner/work/codetypo/codetypo" is shallow and may cause errors
    662:  warnings.warn(f'"{wd.path}" is shallow and may cause errors')
    ...
    
    667:  writing requirements to codetypo.egg-info/requires.txt
    668:  writing top-level names to codetypo.egg-info/top_level.txt
    669:  reading manifest template 'MANIFEST.in'
    670:  warning: no previously-included files found matching 'example'
    671:  warning: no previously-included files found matching 'snap'
    672:  adding license file 'COPYING'
    673:  writing manifest file 'codetypo.egg-info/SOURCES.txt'
    674:  * Building sdist...
    675:  /tmp/build-env-ov1nmbwv/lib/python3.11/site-packages/setuptools_scm/git.py:167: UserWarning: "/home/runner/work/codetypo/codetypo" is shallow and may cause errors
    676:  warnings.warn(f'"{wd.path}" is shallow and may cause errors')
    ...
    
    752:  - setuptools_scm[toml]>=6.2, != 8.0.0
    753:  * Getting build dependencies for wheel...
    754:  running egg_info
    755:  writing codetypo.egg-info/PKG-INFO
    756:  writing dependency_links to codetypo.egg-info/dependency_links.txt
    757:  writing entry points to codetypo.egg-info/entry_points.txt
    758:  writing requirements to codetypo.egg-info/requires.txt
    759:  writing top-level names to codetypo.egg-info/top_level.txt
    760:  ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
    ...
    
    791:  copying codetypo/tests/test_basic.py -> build/lib/codetypo/tests
    792:  copying codetypo/tests/test_dictionary.py -> build/lib/codetypo/tests
    793:  running egg_info
    794:  writing codetypo.egg-info/PKG-INFO
    795:  writing dependency_links to codetypo.egg-info/dependency_links.txt
    796:  writing entry points to codetypo.egg-info/entry_points.txt
    797:  writing requirements to codetypo.egg-info/requires.txt
    798:  writing top-level names to codetypo.egg-info/top_level.txt
    799:  ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
    ...
    
    908:  [INFO] Initializing environment for https://github.com/executablebooks/mdformat:mdformat-toc,mdformat-beautysh,mdformat-config,mdformat-black,mdformat-web,mdformat-gfm.
    909:  [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks-markup.
    910:  [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
    911:  [INFO] Initializing environment for https://github.com/adrienverge/yamllint.git.
    912:  [INFO] Initializing environment for https://github.com/astral-sh/ruff-pre-commit.
    913:  [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier.
    914:  [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:[email protected].
    915:  [INFO] Initializing environment for https://github.com/abravalheri/validate-pyproject.
    916:  An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'fetch', 'origin', '--tags')
    917:  return code: 128
    918:  stdout: (none)
    919:  stderr:
    920:  remote: Internal Server Error
    921:  fatal: unable to access 'https://github.com/abravalheri/validate-pyproject/': The requested URL returned error: 500
    922:  Check the log at /home/runner/.cache/pre-commit/pre-commit.log
    923:  make: *** [Makefile:42: ruff] Error 3
    924:  ##[error]Process completed with exit code 2.
    

    ✨ CI feedback usage guide:

    The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
    The tool analyzes the failed checks and provides several feedbacks:

    • Failed stage
    • Failed test name
    • Failure summary
    • Relevant error logs

    In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:

    /checks "https://github.com/{repo_name}/actions/runs/{run_number}/job/{job_number}"
    

    where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.

    Configuration options

    • enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
    • excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
    • enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
    • persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
    • final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.

    See more information about the checks tool in the docs.

    @pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from d2e21c7 to cd497d1 Compare January 20, 2025 23:26
    Copy link

    codiumai-pr-agent-free bot commented Jan 20, 2025

    CI Feedback 🧐

    (Feedback updated until commit ad6d467)

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

    Action: 3.9

    Failed stage: Run make check [❌]

    Failed test name: PT006 (Ruff linting check)

    Failure summary:

    The action failed due to a Ruff linting error in the file codetypo/tests/test_dictionary.py.
    Specifically:

  • On line 50, there is an incorrect type being passed to the first argument of pytest.mark.parametrize
  • The error code PT006 indicates that a tuple was expected but a different type was provided
  • The build process failed with exit code 2 due to this linting error

  • Relevant error logs:
    1:  ##[group]Operating System
    2:  Ubuntu
    ...
    
    232:  aspell-autobuildhash: processing: en [en_GB-ize-w_accents-only].
    233:  aspell-autobuildhash: processing: en [en_GB-ize-wo_accents-only].
    234:  aspell-autobuildhash: processing: en [en_GB-variant_0].
    235:  aspell-autobuildhash: processing: en [en_GB-variant_1].
    236:  aspell-autobuildhash: processing: en [en_US-w_accents-only].
    237:  aspell-autobuildhash: processing: en [en_US-wo_accents-only].
    238:  ##[group]Run python --version  # just to check
    239:  �[36;1mpython --version  # just to check�[0m
    240:  �[36;1mpip install --upgrade pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors�[0m
    ...
    
    537:  comma-separated list of custom dictionary files that
    538:  contain spelling corrections. If this flag is not
    539:  specified or equals "-" then the default dictionary is
    540:  used.
    541:  --builtin BUILTIN-LIST
    542:  comma-separated list of builtin dictionaries to
    543:  include (when "-D -" or no "-D" is passed). Current
    544:  options are:
    545:  - 'clear' for unambiguous errors
    546:  - 'rare' for rare (but valid) words that are likely to
    547:  be errors
    ...
    
    588:  default any alphanumeric character, the underscore,
    589:  the hyphen, and the apostrophe are used to build
    590:  words. This option cannot be specified together with
    591:  --write-changes.
    592:  --uri-regex URI_REGEX
    593:  regular expression that is used to find URIs and
    594:  emails. A default expression is provided.
    595:  -s, --summary         print summary of fixes
    596:  --count               print the number of errors as the last line of stderr
    ...
    
    679:  -- generated xml file: /home/runner/work/codetypo/codetypo/junit-results.xml ---
    680:  ============================= 54 passed in 21.68s ==============================
    681:  python -m build -o /tmp/tmp.WNA5Y0sMI0
    682:  * Creating isolated environment: venv+pip...
    683:  * Installing packages in isolated environment:
    684:  - setuptools>=64
    685:  - setuptools_scm[toml]>=6.2, != 8.0.0
    686:  * Getting build dependencies for sdist...
    687:  /tmp/build-env-q7xlako3/lib/python3.9/site-packages/setuptools_scm/git.py:167: UserWarning: "/home/runner/work/codetypo/codetypo" is shallow and may cause errors
    688:  warnings.warn(f'"{wd.path}" is shallow and may cause errors')
    ...
    
    693:  writing requirements to codetypo.egg-info/requires.txt
    694:  writing top-level names to codetypo.egg-info/top_level.txt
    695:  reading manifest template 'MANIFEST.in'
    696:  warning: no previously-included files found matching 'example'
    697:  warning: no previously-included files found matching 'snap'
    698:  adding license file 'COPYING'
    699:  writing manifest file 'codetypo.egg-info/SOURCES.txt'
    700:  * Building sdist...
    701:  /tmp/build-env-q7xlako3/lib/python3.9/site-packages/setuptools_scm/git.py:167: UserWarning: "/home/runner/work/codetypo/codetypo" is shallow and may cause errors
    702:  warnings.warn(f'"{wd.path}" is shallow and may cause errors')
    ...
    
    778:  - setuptools_scm[toml]>=6.2, != 8.0.0
    779:  * Getting build dependencies for wheel...
    780:  running egg_info
    781:  writing codetypo.egg-info/PKG-INFO
    782:  writing dependency_links to codetypo.egg-info/dependency_links.txt
    783:  writing entry points to codetypo.egg-info/entry_points.txt
    784:  writing requirements to codetypo.egg-info/requires.txt
    785:  writing top-level names to codetypo.egg-info/top_level.txt
    786:  ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
    ...
    
    817:  creating build/lib/codetypo/data
    818:  copying codetypo/data/__init__.py -> build/lib/codetypo/data
    819:  running egg_info
    820:  writing codetypo.egg-info/PKG-INFO
    821:  writing dependency_links to codetypo.egg-info/dependency_links.txt
    822:  writing entry points to codetypo.egg-info/entry_points.txt
    823:  writing requirements to codetypo.egg-info/requires.txt
    824:  writing top-level names to codetypo.egg-info/top_level.txt
    825:  ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
    ...
    
    940:  [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:[email protected].
    941:  [INFO] Initializing environment for https://github.com/abravalheri/validate-pyproject.
    942:  [INFO] Initializing environment for https://github.com/abravalheri/validate-pyproject:.[all].
    943:  [INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy.
    944:  [INFO] Initializing environment for https://github.com/pre-commit/mirrors-mypy:pytest,tomli,types-chardet.
    945:  [INFO] Installing environment for https://github.com/astral-sh/ruff-pre-commit.
    946:  [INFO] Once installed this environment will be reused.
    947:  [INFO] This may take a few minutes...
    948:  ruff.....................................................................Failed
    949:  - hook id: ruff
    950:  - exit code: 1
    951:  warning: The following rules have been removed and ignoring them has no effect:
    952:  - ANN101
    953:  ##[error]codetypo/tests/test_dictionary.py:50:5: PT006 Wrong type passed to first argument of `pytest.mark.parametrize`; expected `tuple`
    954:  make: *** [Makefile:42: ruff] Error 1
    955:  ##[error]Process completed with exit code 2.
    

    updates:
    - [github.com/executablebooks/mdformat: 0.7.21 → 0.7.22](hukkin/mdformat@0.7.21...0.7.22)
    - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.6](astral-sh/ruff-pre-commit@v0.8.6...v0.9.6)
    - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.15.0](pre-commit/mirrors-mypy@v1.14.1...v1.15.0)
    @pre-commit-ci pre-commit-ci bot force-pushed the pre-commit-ci-update-config branch from 821da29 to 14a9395 Compare February 10, 2025 23:39
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    Status: Backlog
    Development

    Successfully merging this pull request may close these issues.

    0 participants