Skip to content

Commit

Permalink
Dev-deps: bump ruff and revise config; remove pdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot-100 committed Feb 10, 2025
1 parent 8d785f1 commit cd354f3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 17 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit cd354f3

Please sign in to comment.