Skip to content

Commit

Permalink
Fix misc code style
Browse files Browse the repository at this point in the history
Also, config ruff to support "preview" includes, or E226 check will not
run on future versions.
  • Loading branch information
dcamron committed Oct 25, 2023
1 parent 97aa462 commit ce93311
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ line-length = 95
exclude = ["docs", "build", "src/metpy/io/_metar_parser/metar_parser.py"]
select = ["A", "B", "C", "D", "E", "E226", "F", "G", "I", "N", "Q", "R", "S", "T", "U", "W"]
ignore = ["F405", "I001", "RET504", "RET505", "RET506", "RET507", "RUF100"]
preview = true
explicit-preview-rules = true

[tool.ruff.per-file-ignores]
"ci/filter_links.py" = ["E731", "T201", "S603", "S607"]
Expand Down
2 changes: 1 addition & 1 deletion src/metpy/calc/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def relative_humidity_from_dewpoint(temperature, dewpoint):
"""
e = saturation_vapor_pressure(dewpoint)
e_s = saturation_vapor_pressure(temperature)
return (e / e_s)
return e / e_s


@exporter.export
Expand Down

0 comments on commit ce93311

Please sign in to comment.