Skip to content

add pre-commit configs - #35

Merged
Yi-FanLi merged 72 commits into
deepmodeling:develfrom
njzjz:pre-commit
Dec 14, 2023
Merged

Yi-FanLi merged 72 commits into
deepmodeling:develfrom
njzjz:pre-commit

Conversation

@njzjz

@njzjz njzjz commented Dec 14, 2023 •

Copy link
Copy Markdown
Member

add pre-commit configs

@njzjz
njzjz changed the base branch from master to devel December 14, 2023 04:34
@njzjz njzjz changed the title pre commit add pre-commit configs Dec 14, 2023
@codecov

codecov Bot commented Dec 14, 2023 •

Copy link
Copy Markdown

Codecov Report

Attention: 3308 lines in your changes are missing coverage. Please review.

Comparison is base (990c310) 38.03% compared to head (759bed2) 0.00%.

Files Patch % Lines
dpti/hti.py 0.00% 518 Missing ⚠️
dpti/hti_water.py 0.00% 416 Missing ⚠️
dpti/ti.py 0.00% 342 Missing ⚠️
dpti/old_equi.py 0.00% 279 Missing ⚠️
dpti/equi.py 0.00% 267 Missing ⚠️
dpti/hti_liq.py 0.00% 260 Missing ⚠️
dpti/lib/RemoteJob.py 0.00% 257 Missing ⚠️
dpti/lib/utils.py 0.00% 149 Missing ⚠️
dpti/gdi.py 0.00% 141 Missing ⚠️
dpti/lib/water.py 0.00% 107 Missing ⚠️
... and 13 more
Additional details and impacted files
@@            Coverage Diff             @@
##            devel     #35       +/-   ##
==========================================
- Coverage   38.03%   0.00%   -38.04%     
==========================================
  Files          24      23        -1     
  Lines        5366    5280       -86     
==========================================
- Hits         2041       0     -2041     
- Misses       3325    5280     +1955     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

njzjz and others added 25 commits December 13, 2023 23:40
@Yi-FanLi
Yi-FanLi merged commit d866a51 into deepmodeling:devel Dec 14, 2023
felix5572 pushed a commit to felix5572/dpti that referenced this pull request Mar 16, 2025
* add pre-commit configs

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

for more information, see https://pre-commit.ci

* fix tests

* replace import modules with __all__

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

for more information, see https://pre-commit.ci

* Do not compare types, use `isinstance()`

* ignore check-yaml

* remove duplicate json keys

* fix broken symlink

* put "dpti" in __all__

* update dpdispatcher import

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

for more information, see https://pre-commit.ci

* Use format specifiers instead of percent format

* Mutable class attributes should be annotated with `typing.ClassVar`

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

for more information, see https://pre-commit.ci

* Replace legacy `np.random.randint` call with `np.random.Generator`

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

for more information, see https://pre-commit.ci

* Comparison to `None` should be `cond is None`

* Replace legacy `np.random.randint` call with `np.random.Generator`

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

for more information, see https://pre-commit.ci

* Do not compare types, use `isinstance()`

* Do not compare types, use `isinstance()`

* Unnecessary `dict` call (rewrite as a literal)

* Comparison to `None`

* Comparison to `True` should be `cond is True` or `if cond:`

* equi.py: Use format specifiers instead of percent format

* gdi.py: Use format specifiers instead of percent format

* enable unsafe fixes

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

for more information, see https://pre-commit.ci

* Replace legacy `np.random.randint` call with `np.random.Generator`

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

for more information, see https://pre-commit.ci

* Do not compare types, use `isinstance()`

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

for more information, see https://pre-commit.ci

* from ovito.io import import_file, export_file

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

for more information, see https://pre-commit.ci

* delete SlurmJob.py

* fix codeblock parsing in README.md

* update random number patching in UT

* patch default_rng

* ifx patch default_rng

* fix patch

* import gdi in gdi UT

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

for more information, see https://pre-commit.ci

* from dpti import * in gdi UT

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

for more information, see https://pre-commit.ci

* fix pre-commit ci

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

for more information, see https://pre-commit.ci

* fix UT

* fix UT

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

for more information, see https://pre-commit.ci

* fix pre-commit ci

* from dpti import gdi

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

for more information, see https://pre-commit.ci

* Update test_gdi_make_task.py

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

for more information, see https://pre-commit.ci

* Update context.py

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

for more information, see https://pre-commit.ci

* fix rng patching

* fix dafault_rng patching

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

for more information, see https://pre-commit.ci

* close unsafe autofix

* import dpti.equi

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

for more information, see https://pre-commit.ci

* fix patching for test_equi_gen_ensemble_settings

* test_gdi_make_task: update patching

* test_gdi_make_task: update patching

* update prng patching

* fix f-string error

* update prng patching

* 7578 -> 7858

* test_ti_make_task: update patching

* update f-string for string

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Yifan Li李一帆 <yifanl0716@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants