Skip to content

[pre-commit.ci] auto fixes from pre-commit.com hooks

GitHub Advanced Security / CodeQL failed Mar 5, 2024 in 3s

2 new alerts including 1 error

New alerts in code changed by this pull request

  • 1 error
  • 1 note

See annotations below for details.

View all branch alerts.

Annotations

Check warning on line 27 in deepmd/pt/model/model/dp_zbl_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Conflicting attributes in base classes Warning

Base classes have conflicting values for attribute 'compute_or_load_stat':
Function compute_or_load_stat
and
Function compute_or_load_stat
.
Base classes have conflicting values for attribute 'compute_or_load_stat':
Function compute_or_load_stat
and
Function compute_or_load_stat
.

Check warning on line 28 in deepmd/pt/model/model/dp_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Conflicting attributes in base classes Warning

Base classes have conflicting values for attribute 'compute_or_load_stat':
Function compute_or_load_stat
and
Function compute_or_load_stat
.
Base classes have conflicting values for attribute 'compute_or_load_stat':
Function compute_or_load_stat
and
Function compute_or_load_stat
.

Check notice on line 152 in source/tests/pt/test_finetune.py

See this annotation in the file changed.

Code scanning / CodeQL

Commented-out code Note test

This comment appears to contain commented-out code.

Check failure on line 193 in source/tests/pt/model/test_linear_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Wrong number of arguments in a call Error test

Call to
method TestCase.assertRaises
with too few arguments; should be no fewer than 1.

Check notice on line 194 in source/tests/pt/model/test_linear_atomic_model.py

See this annotation in the file changed.

Code scanning / CodeQL

Unused local variable Note test

Variable new_atype is not used.