diff --git a/CHANGELOG.md b/CHANGELOG.md index 6733b93..ea7ed84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,11 @@ Historic and pre-release versions aren't necessarily included. ### Changed - Rename `profile` module as it shadowed a Python built-in +- Update dev dependency: ruff, and its config + +### Removed + +- Remove unused dev dependency: pdoc ## [0.11.0] - 2024-10-23 diff --git a/pyproject.toml b/pyproject.toml index 6241a84..99e3f58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,8 +17,7 @@ requests = ">=2.23.1" playwright = ">=1.39.0" [tool.poetry.group.dev.dependencies] -pdoc = ">=14.6.0" -ruff = ">=0.5.7" +ruff = "~0.9.5" [tool.poetry.group.test.dependencies] mypy = ">=1.11.1" @@ -39,19 +38,24 @@ target-version = "py38" # Ruff doesn't respect Python version in [tool.poetry.d [tool.ruff.lint] select = ["ALL"] -# Ignore rules that conflict with Ruff formatter: -# COM812 Trailing comma missing -# ISC001 Implicitly concatenated string literals on one line -ignore = ["COM812", "ISC001"] +ignore = [ + # Rules that conflict with Ruff formatter: + "COM812", # Trailing comma missing + "ISC001", # Implicitly concatenated string literals on one line + # Other: + "RUF022", # `__all__` is not sorted + ] [tool.ruff.lint.per-file-ignores] -# Ignore rules that aren't relevant/useful in tests: -# PLR2004 Magic value used in comparison -# S101 Use of assert detected -"**/{tests}/*" = ["PLR2004", "S101"] -# Ignore rules that aren't relevant/useful in example scripts: -# T203 `pprint` found -"example*.py" = ["T203"] +# Rules that aren't relevant/useful in tests: +"**/{tests}/*" = [ + "PLR2004", # Magic value used in comparison + "S101", # Use of assert detected + ] +# Rules that aren't relevant/useful in example scripts: +"example*.py" = [ + "T203", # T203 `pprint` found + ] [tool.ruff.lint.pydocstyle] convention = "numpy"