markjoshwel / tomlantic

marrying pydantic models and tomlkit documents for data validated, style-preserving toml files
The Unlicense
1 stars 1 forks source link

pass ruff static analysis #9

Open markjoshwel opened 7 months ago

markjoshwel commented 7 months ago
test.py:43:49: E712 Comparison to `True` should be `cond is True` or `if cond:`
test.py:46:42: E712 Comparison to `False` should be `cond is False` or `if not cond:`
test.py:85:1: E722 Do not use bare `except`
test.py:102:42: E711 Comparison to `None` should be `cond is None`
tomlantic/__init__.py:33:5: F401 [*] `.tomlantic.Difference` imported but unused
tomlantic/__init__.py:34:5: F401 [*] `.tomlantic.ModelBoundTOML` imported but unused
tomlantic/__init__.py:35:5: F401 [*] `.tomlantic.TomlanticException` imported but unused
tomlantic/__init__.py:36:5: F401 [*] `.tomlantic.TOMLAttributeError` imported but unused
tomlantic/__init__.py:37:5: F401 [*] `.tomlantic.TOMLBaseSingleError` imported but unused
tomlantic/__init__.py:38:5: F401 [*] `.tomlantic.TOMLFrozenError` imported but unused
tomlantic/__init__.py:39:5: F401 [*] `.tomlantic.TOMLMissingError` imported but unused
tomlantic/__init__.py:40:5: F401 [*] `.tomlantic.TOMLValidationError` imported but unused
tomlantic/__init__.py:41:5: F401 [*] `.tomlantic.TOMLValueError` imported but unused
tomlantic/__init__.py:42:5: F401 [*] `.tomlantic.get_toml_field` imported but unused
tomlantic/__init__.py:43:5: F401 [*] `.tomlantic.set_toml_field` imported but unused
tomlantic/__init__.py:44:5: F401 [*] `.tomlantic.validate_heterogeneous_collection` imported but unused
tomlantic/__init__.py:45:5: F401 [*] `.tomlantic.validate_homogeneous_collection` imported but unused
tomlantic/__init__.py:46:5: F401 [*] `.tomlantic.validate_to_multiple_types` imported but unused
tomlantic/__init__.py:47:5: F401 [*] `.tomlantic.validate_to_specific_type` imported but unused
use_lowest_versions.py:4:16: F401 [*] `os.system` imported but unused
Found 21 errors.
[*] 16 fixable with the `--fix` option (4 hidden fixes can be enabled with the `--unsafe-fixes` option).

oh wow the main tomlantic file passes first try; it's just the __init__ F401 bug improper imports error i also encountered with surplus and some cleaning up jank in use_lowest_versions.py and test.py