Skip to content

some issues by pre-commit-toolkit #493

@kkscilife

Description

@kkscilife

We found some issues by pre-commit-toolkit

For example:

  1. fatal error
error: cannot format InternLM-XComposer-2.5-OmniLive/online_demo_gradio/backend_vs.py: Cannot parse: 187:45:         input_ids.append(prompt_chunks[0][0])mem token
  1. 'imported but unused' modules will add init time (There are many similar cases; we'll just illustrate with one example.)
InternLM-XComposer-1.0/demo_asset/serve_utils.py:8:1: F401 'torch' imported but unused
  1. undefined-variable (There are many similar cases; we'll just illustrate with one example.)
InternLM-XComposer-2.0/evaluation/mmbench/utils.py:19:24: E0602: Undefined variable 'os' (undefined-variable)
  1. no-name-in-module (There are other similar cases; we'll just illustrate with one example.)
InternLM-XComposer-1.0/demo_asset/gradio_patch.py:8:0: E0611: No name 'Changeable' in module 'gradio.events' (no-name-in-module)
  1. unexpected-keyword-arg (There are other similar cases; we'll just illustrate with one example.)
InternLM-XComposer-1.0/examples/web_demo.py:1071:4: E1123: Unexpected keyword argument 'concurrency_count' in method call (unexpected-keyword-arg)
  1. spell error (There are many similar cases; we'll just illustrate with one example.)
gradio_demo/gradio_demo_composition.py:1083: Instrcution ==> Instruction
InternLM-XComposer-2.5-OmniLive/internlm-xcomposer2d5-ol-7b/merge_lora/modeling_internlm_xcomposer2.py:245: Waring ==> Warning

Suggest adding more rules from reference

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions