Skip to content

Commit

Permalink
more ruff config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Dec 18, 2024
1 parent 36ad618 commit 85f73c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions airbyte-ci/connectors/pipelines/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
target-version = "py310"
line-length = 140

ignore = ["ANN003"]

[lint]

ignore = ["ANN003"]
extend-select = [
"ANN", # flake8-annotations
]


[lint.pydocstyle]
convention = "google"

Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ skip_glob = [
"airbyte-integrations/connectors/destination-snowflake-cortex/**"
]

[tool.ruff.pylint]
[tool.ruff.lint.pylint]
max-args = 8 # Relaxed from default of 5
max-branches = 15 # Relaxed from default of 12

Expand Down Expand Up @@ -159,7 +159,7 @@ ignore = [
"S", # flake8-bandit (noisy, security related)
"SIM910", # Allow "None" as second argument to Dict.get(). "Explicit is better than implicit."
"TD002", # Require author for TODOs
"TRIO", # flake8-trio (opinionated, noisy)
"ASYNC1", # flake8-trio (opinionated, noisy)
"INP001", # Dir 'examples' is part of an implicit namespace package. Add an __init__.py.

# TODO: Consider re-enabling these before release:
Expand Down Expand Up @@ -191,7 +191,6 @@ known-first-party = [
"connector_ops",
"pipelines",
]
known-local-folder = ["airbyte"]
required-imports = ["from __future__ import annotations"]
known-third-party = []
section-order = [
Expand All @@ -205,10 +204,10 @@ section-order = [
[tool.ruff.lint.mccabe]
max-complexity = 24

[tool.ruff.pycodestyle]
[tool.ruff.lint.pycodestyle]
ignore-overlong-task-comments = true

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

[tool.ruff.lint.flake8-annotations]
Expand Down

0 comments on commit 85f73c1

Please sign in to comment.