Skip to content

Commit

Permalink
Update pylint and ruff configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
klaasnicolaas committed Feb 13, 2024
1 parent a0a63e9 commit 10237a6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 28 deletions.
37 changes: 10 additions & 27 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,7 @@ warn_unused_configs = true
warn_unused_ignores = true

[tool.pylint.BASIC]
good-names = [
"_",
"ex",
"fp",
"i",
"id",
"j",
"k",
"on",
"Run",
"T",
"vw",
]
good-names = ["_", "ex", "fp", "i", "id", "j", "k", "on", "Run", "T"]

[tool.pylint."MESSAGES CONTROL"]
disable= [
Expand All @@ -129,26 +117,21 @@ addopts = "--cov"
asyncio_mode = "auto"

[tool.ruff]
target-version = "py311"
lint.select = ["ALL"]
lint.ignore = [
"ANN101", # Self... explanatory
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"D417", # False positives in some occasions
"ANN101", # Self... explanatory
"ANN102", # cls... just as useless
"ANN401", # Opinioated warning on disallowing dynamically typed expressions
"D203", # Conflicts with other rules
"D213", # Conflicts with other rules
"D417", # False positives in some occasions
"PLR2004", # Just annoying, not really useful
"SLOT000", # Has a bug with enums: https://github.com/astral-sh/ruff/issues/5748

# Formatter conflicts
# Conflicts with the Ruff formatter
"COM812",
"COM819",
"D206",
"E501",
"ISC001",
"Q000",
"Q001",
"Q002",
"Q003",
"W191",
]

[tool.ruff.lint.flake8-pytest-style]
Expand Down
2 changes: 1 addition & 1 deletion src/brussel/brussel.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def _request(
ssl=True,
)
response.raise_for_status()
except asyncio.TimeoutError as exception:
except TimeoutError as exception:
msg = "Timeout occurred while connecting to the Open Data Platform API."
raise ODPBrusselConnectionError(
msg,
Expand Down

0 comments on commit 10237a6

Please sign in to comment.