Skip to content

Commit

Permalink
Merge pull request #90 from elliot-100/89-upgraderuff-and-config
Browse files Browse the repository at this point in the history
Upgrade ruff and config
  • Loading branch information
elliot-100 authored Jul 4, 2024
2 parents 50a0dee + ad09659 commit 127ab43
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,45 +17,36 @@ requests = "^2.23.1"
playwright = "^1.39.0"

[tool.poetry.group.dev.dependencies]
ruff = "^0.4.1"
ruff = "^0.5.0"

[tool.poetry.group.test.dependencies]
mypy = "^1.7.1"
pytest = "^7.4.2"
types-requests = "^2.31.0.10"
types-beautifulsoup4 = "^4.12.0.7"

[tool.black]
line-length = 88
target-version = ['py38']

[tool.isort]
profile = "black"

[tool.mypy]
strict = true

[[tool.mypy.overrides]]
module = "playwright"
disallow_untyped_calls = false

[tool.ruff]
[tool.ruff.lint]
# Enable rulesets:
# flake8-ANNotations, flake8-COMmas, pyDocstyle, pycodestylE, pyFlakes, Isort,
# flake8-Future-Annotations, flake8-bandit (S)
select = ["ANN", "COM", "D", "E", "F", "I", "FA", "S"]

# Ignore rules that conflict with Ruff formatter:
# COM812 Trailing comma missing
# Ignore other rules:
# Missing type annotation for `self` in method
ignore = ["COM812", "ANN101"]
ignore = ["COM812"]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
# Use of `assert` detected
"**/{tests}/*" = ["S101"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "numpy"

[build-system]
Expand Down

0 comments on commit 127ab43

Please sign in to comment.