Skip to content

Commit

Permalink
Merge pull request #495 from DHI/fix_ruff_config
Browse files Browse the repository at this point in the history
Add missing ruff lint default rules
  • Loading branch information
jsmariegaard authored Jan 7, 2025
2 parents 8c668a9 + d4728f6 commit ba82071
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 35 deletions.
2 changes: 1 addition & 1 deletion modelskill/comparison/_comparer_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def scatter(
skill_table: Optional[Union[str, List[str], bool]] = None,
ax: Optional[matplotlib.axes.Axes] = None,
**kwargs,
) -> matplotlib.axes.Axes | list[matplotlib.axes.Axes]:
) -> matplotlib.axes.Axes | list[matplotlib.axes.Axes]:
"""Scatter plot tailored for model-observation comparison.
Optionally, with density histogram.
Expand Down
59 changes: 25 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ exclude = ["notebooks", "tests"]
allow-direct-references = true

[project]
name="modelskill"
version="1.2.dev0"
name = "modelskill"
version = "1.2.dev0"
dependencies = [
"numpy > 1.24.4",
"pandas >= 1.4",
Expand All @@ -23,11 +23,11 @@ dependencies = [
]

authors = [
{ name="Jesper Sandvig Mariegaard", email="[email protected]" },
{ name="Henrik Andersson", email="[email protected]" },
{ name = "Jesper Sandvig Mariegaard", email = "[email protected]" },
{ name = "Henrik Andersson", email = "[email protected]" },
]
description="Compare results from simulations with observations."
license="MIT"
description = "Compare results from simulations with observations."
license = "MIT"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
Expand All @@ -44,45 +44,36 @@ classifiers = [
]

[project.optional-dependencies]
docs = ["quarto-cli==1.5.57",
"quartodoc==0.9.1",
"netCDF4",
"plotly >= 4.5",
"dask",
]
docs = [
"quarto-cli==1.5.57",
"quartodoc==0.9.1",
"netCDF4",
"plotly >= 4.5",
"dask",
]

dev = ["pytest",
"plotly >= 4.5",
"ruff==0.6.2",]
dev = ["pytest", "plotly >= 4.5", "ruff==0.6.2"]

test = [
"pytest",
"pytest-cov",
"openpyxl",
"dask",
"mypy",
"types-PyYAML",
"geopandas",
]
test = [
"pytest",
"pytest-cov",
"openpyxl",
"dask",
"mypy",
"types-PyYAML",
"geopandas",
]

notebooks = [
"nbformat",
"nbconvert",
"jupyter",
"plotly",
"shapely",
"seaborn",
]
notebooks = ["nbformat", "nbconvert", "jupyter", "plotly", "shapely", "seaborn"]

[project.urls]
"Homepage" = "https://github.com/DHI/modelskill"
"Bug Tracker" = "https://github.com/DHI/modelskill/issues"



[tool.ruff.lint]
ignore = ["E501"]
select = ["D200", "D205"]
select = ["E4", "E7", "E9", "F", "D200", "D205"]

[tool.mypy]
python_version = "3.9"
Expand Down

0 comments on commit ba82071

Please sign in to comment.