tardis-sn / tardis

TARDIS - Temperature And Radiative Diffusion In Supernovae
https://tardis-sn.github.io/tardis
204 stars 406 forks source link

Logger Widget Panel #2872

Open atharva-2001 opened 1 week ago

atharva-2001 commented 1 week ago

:pencil: Description

Type: :beetle: bugfix | :rocket: feature | :biohazard: breaking change | :vertical_traffic_light: testing | :memo: documentation | :roller_coaster: infrastructure

Write a complete description of your changes, including the necessary context or any piece of information required to understand your work.

Also, link issues affected by this pull request by using the keywords: close, closes, closed, fix, fixes, fixed, resolve, resolves or resolved.

:pushpin: Resources

Examples, notebooks, and links to useful references.

:vertical_traffic_light: Testing

How did you test these changes?

:ballot_box_with_check: Checklist

Note: If you are not allowed to perform any of these actions, ping (@) a contributor.

review-notebook-app[bot] commented 1 week ago

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

tardis-bot commented 1 week ago

*beep* *bop* Hi human, I ran ruff on the latest commit (e2db2b14574b6cde05b9a1def208eef26ba45cf0). Here are the outputs produced. Results can also be downloaded as artifacts here. Summarised output:

```diff 17 W293 [*] Blank line contains whitespace 8 G004 [ ] Logging statement uses f-string 5 F405 [ ] `exclude_patterns` may be undefined, or defined from star imports 3 FA102 [*] Missing `from __future__ import annotations`, but uses PEP 585 collection 3 F401 [*] `IPython.display.display` imported but unused 3 UP015 [*] Unnecessary open mode parameters 2 I001 [*] Import block is un-sorted or un-formatted 2 E402 [ ] Module level import not at top of file 2 W291 [*] Trailing whitespace 2 W605 [*] Invalid escape sequence: `\A` 1 RET505 [ ] Unnecessary `else` after `return` statement 1 RET506 [ ] Unnecessary `else` after `raise` statement 1 E712 [*] Avoid equality comparisons to `True`; use `if toml_config_tool_dict["tardis"]['edit_on_github']:` for truth checks 1 E902 [ ] No such file or directory (os error 2) 1 W292 [*] No newline at end of file 1 D204 [*] 1 blank line required after class docstring 1 PGH004 [ ] Use specific rule codes when using `noqa` 1 UP009 [*] UTF-8 encoding declaration is unnecessary 1 UP030 [*] Use implicit references for positional format fields 1 UP032 [*] Use f-string instead of `format` call 1 TRY300 [ ] Consider moving this statement to an `else` block ```

Complete output(might be large):

```diff docs/conf.py:1:1: UP009 [*] UTF-8 encoding declaration is unnecessary docs/conf.py:27:1: I001 [*] Import block is un-sorted or un-formatted docs/conf.py:30:8: F401 [*] `tardis` imported but unused docs/conf.py:36:43: PGH004 Use specific rule codes when using `noqa` docs/conf.py:46:6: UP015 [*] Unnecessary open mode parameters docs/conf.py:67:1: F405 `exclude_patterns` may be undefined, or defined from star imports docs/conf.py:68:1: F405 `exclude_patterns` may be undefined, or defined from star imports docs/conf.py:69:1: F405 `exclude_patterns` may be undefined, or defined from star imports docs/conf.py:70:1: F405 `exclude_patterns` may be undefined, or defined from star imports docs/conf.py:71:1: F405 `exclude_patterns` may be undefined, or defined from star imports docs/conf.py:140:1: W293 Blank line contains whitespace docs/conf.py:175:1: W293 Blank line contains whitespace docs/conf.py:192:13: UP030 Use implicit references for positional format fields docs/conf.py:192:13: UP032 [*] Use f-string instead of `format` call docs/conf.py:219:1: E402 Module level import not at top of file docs/conf.py:292:4: E712 Avoid equality comparisons to `True`; use `if toml_config_tool_dict["tardis"]['edit_on_github']:` for truth checks docs/conf.py:359:1: E402 Module level import not at top of file docs/conf.py:374:10: UP015 [*] Unnecessary open mode parameters, use ""w"" docs/conf.py:389:10: UP015 [*] Unnecessary open mode parameters, use ""w"" docs/quickstart.ipynb:cell 13:1:39: W291 [*] Trailing whitespace docs/quickstart.ipynb:cell 13:5:35: W291 [*] Trailing whitespace docs/quickstart.ipynb:cell 18:10:26: W605 [*] Invalid escape sequence: `\A` docs/quickstart.ipynb:cell 18:11:40: W605 [*] Invalid escape sequence: `\A` tardis/io/logger/__init__.py:4:37: F401 `tardis.io.logger.logger.logger_widget` imported but unused; consider removing, adding to `__all__`, or using a redundant alias tardis/io/logger/__init__.py:4:50: W292 [*] No newline at end of file tardis/io/logger/colored_logger.py:1:1: E902 No such file or directory (os error 2) tardis/io/logger/logger.py:1:1: I001 [*] Import block is un-sorted or un-formatted tardis/io/logger/logger.py:41:13: FA102 Missing `from __future__ import annotations`, but uses PEP 585 collection tardis/io/logger/logger.py:50:13: FA102 Missing `from __future__ import annotations`, but uses PEP 585 collection tardis/io/logger/logger.py:50:18: FA102 Missing `from __future__ import annotations`, but uses PEP 604 union tardis/io/logger/logger.py:58:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:80:21: G004 Logging statement uses f-string tardis/io/logger/logger.py:126:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:128:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:137:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:140:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:149:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:160:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:166:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:170:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:176:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:180:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:187:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:191:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:194:1: W293 [*] Blank line contains whitespace tardis/io/logger/logger.py:204:5: D204 [*] 1 blank line required after class docstring tardis/io/logger/logger.py:207:1: W293 [*] Blank line contains whitespace tardis/simulation/base.py:8:29: F401 [*] `IPython.display.display` imported but unused tardis/simulation/base.py:197:13: RET506 Unnecessary `else` after `raise` statement tardis/simulation/base.py:261:17: G004 Logging statement uses f-string tardis/simulation/base.py:268:9: RET505 Unnecessary `else` after `return` statement tardis/simulation/base.py:449:13: G004 Logging statement uses f-string tardis/simulation/base.py:547:13: G004 Logging statement uses f-string tardis/simulation/base.py:636:21: G004 Logging statement uses f-string tardis/simulation/base.py:639:13: G004 Logging statement uses f-string tardis/simulation/base.py:644:13: G004 Logging statement uses f-string tardis/simulation/base.py:695:13: TRY300 Consider moving this statement to an `else` block tardis/simulation/base.py:697:26: G004 Logging statement uses f-string Found 58 errors. [*] 30 fixable with the `--fix` option (7 hidden fixes can be enabled with the `--unsafe-fixes` option). ```