diff --git a/pyproject.toml b/pyproject.toml index f6b032aaee1..cfae651fb52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"] diff --git a/src/metpy/calc/thermo.py b/src/metpy/calc/thermo.py index dc9ce569a75..ec3f67ccb95 100644 --- a/src/metpy/calc/thermo.py +++ b/src/metpy/calc/thermo.py @@ -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