Skip to content

configure ruff

configure ruff #770

Triggered via pull request September 10, 2024 21:36
@njzjznjzjz
synchronize #260
njzjz:ruff
Status Failure
Total duration 9m 4s
Artifacts

pyright.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
pyright: dpgen2/exploration/render/traj_render.py#L34
"Union" is not defined (reportUndefinedVariable)
pyright: dpgen2/exploration/render/traj_render.py#L52
"Union" is not defined (reportUndefinedVariable)
pyright: dpgen2/exploration/render/traj_render_lammps.py#L49
"Union" is not defined (reportUndefinedVariable)
pyright: dpgen2/exploration/render/traj_render_lammps.py#L102
"Union" is not defined (reportUndefinedVariable)
pyright: dpgen2/flow/dpgen_loop.py#L446
Argument of type "bool" cannot be assigned to parameter "_if" of type "str | ArgoVar" in function "if_expression"   Type "bool" cannot be assigned to type "str | ArgoVar"     "bool" is incompatible with "str"     "bool" is incompatible with "ArgoVar" (reportGeneralTypeIssues)
pyright: dpgen2/flow/dpgen_loop.py#L451
Argument of type "bool" cannot be assigned to parameter "_if" of type "str | ArgoVar" in function "if_expression"   Type "bool" cannot be assigned to type "str | ArgoVar"     "bool" is incompatible with "str"     "bool" is incompatible with "ArgoVar" (reportGeneralTypeIssues)
pyright: dpgen2/flow/dpgen_loop.py#L456
Argument of type "bool" cannot be assigned to parameter "_if" of type "str | ArgoVar" in function "if_expression"   Type "bool" cannot be assigned to type "str | ArgoVar"     "bool" is incompatible with "str"     "bool" is incompatible with "ArgoVar" (reportGeneralTypeIssues)
pyright: dpgen2/fp/vasp.py#L167
"np" is not defined (reportUndefinedVariable)
pyright: dpgen2/fp/vasp.py#L170
"np" is not defined (reportUndefinedVariable)
pyright: dpgen2/op/run_caly_model_devi.py#L283
Cannot access member "randint" for type "Generator"   Member "randint" is unknown (reportGeneralTypeIssues)