Skip to content

Commit

Permalink
Ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemanspiff2007 committed Jan 10, 2024
1 parent 7d412b4 commit 0518267
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ max-line-length = 120

exclude =
__init__.py
docs/conf.py

.git,
.tox,
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def load_req() -> typing.List[str]:
print(f'Version: {__version__}')
print('')

# When we run tox tests we don't have these files available so we skip them
# When we run tox tests we don't have these files available, so we skip them
readme = Path(__file__).with_name('readme.md')
long_description = ''
if readme.is_file():
Expand Down
2 changes: 1 addition & 1 deletion src/easyconfig/create_app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_file_values(

# dict -> build models
if isinstance(file_values, dict):
file_values = model.__class__.parse_obj(file_values)
file_values = model.model_validate(file_values)

if file_values is not None and not isinstance(file_values, BaseModel):
msg = f'Default must be None or an instance of {BaseModel.__class__.__name__}! Got {type(file_values)}'
Expand Down
2 changes: 1 addition & 1 deletion tests/test_app_creation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ruff: noqa: RUF012, INP001
# ruff: noqa: RUF012

from enum import Enum
from typing import List
Expand Down
2 changes: 1 addition & 1 deletion tests/yaml/test_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def my_map():
top = CommentedMap()
top['sub_key1'] = data = CommentedMap()

# this is currently not supported but we should not crash if a user does this
# this is currently not supported, but we should not crash if a user does this
top.yaml_set_comment_before_after_key('sub_key1', before='my description')

data['a'] = 1
Expand Down

0 comments on commit 0518267

Please sign in to comment.