Skip to content

Commit

Permalink
make consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
anshbansal committed Jan 17, 2025
1 parent 2e58402 commit 2bdfa9c
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 29 deletions.
6 changes: 6 additions & 0 deletions metadata-ingestion-modules/airflow-plugin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ requires = ["setuptools>=54.0.0", "wheel", "pip>=21.0.0"]
[tool.ruff]
line-length = 88
target-version = "py38"
exclude = [
".git",
"venv",
".tox",
"__pycache__",
]

[tool.ruff.format]
quote-style = "double"
Expand Down
8 changes: 7 additions & 1 deletion metadata-ingestion-modules/dagster-plugin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ build-backend = "setuptools.build_meta"
requires = ["setuptools>=54.0.0", "wheel", "pip>=21.0.0"]

[tool.ruff]
target-version = "py38"
line-length = 88
target-version = "py38"
exclude = [
".git",
"venv",
".tox",
"__pycache__",
]

[tool.ruff.format]
quote-style = "double"
Expand Down
7 changes: 6 additions & 1 deletion metadata-ingestion-modules/gx-plugin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ requires = ["setuptools>=54.0.0", "wheel", "pip>=21.0.0"]
[tool.ruff]
line-length = 88
target-version = "py38"
exclude = [
".git",
"venv",
".tox",
"__pycache__",
]

[tool.ruff.format]
quote-style = "double"
Expand Down Expand Up @@ -48,7 +54,6 @@ ignore = [
max-complexity = 15

[tool.ruff.lint.flake8-tidy-imports]
# Disallow all relative imports.
ban-relative-imports = "all"

[tool.ruff.lint.per-file-ignores]
Expand Down
6 changes: 6 additions & 0 deletions metadata-ingestion-modules/prefect-plugin/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ requires = ["setuptools>=54.0.0", "wheel", "pip>=21.0.0"]
[tool.ruff]
line-length = 88
target-version = "py38"
exclude = [
".git",
"venv",
".tox",
"__pycache__",
]

[tool.ruff.format]
quote-style = "double"
Expand Down
49 changes: 22 additions & 27 deletions metadata-ingestion/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ requires = ["setuptools>=63.0.0", "wheel"]

[tool.ruff]
line-length = 88
# Exclude directories matching these patterns
target-version = "py38"
exclude = [
".git",
"src/datahub/metadata",
"venv",
".tox",
"__pycache__",
Expand All @@ -19,6 +18,23 @@ indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"

[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["datahub"]
extra-standard-library = ["__future__", "datahub.utilities._markupsafe_compat", "datahub.sql_parsing._sqlglot_patch"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
force-sort-within-sections = false
force-wrap-aliases = false
split-on-trailing-comma = false
order-by-type = true
relative-imports-order = "closest-to-furthest"
force-single-line = false
single-line-exclusions = ["typing"]
length-sort = false
from-first = false
required-imports = []
classes = ["typing"]

[tool.ruff.lint]
select = [
"B", # flake8-bugbear
Expand All @@ -29,14 +45,10 @@ select = [
"TID", # flake8-tidy-imports
]
ignore = [
# Ignore line length violations (handled by formatter)
"E501",
# Ignore whitespace before ':' (matches Black)
"E203",
# Allow usages of functools.lru_cache
"B019",
# Allow function call in argument defaults
"B008",
"E501", # Line length violations (handled by formatter)
"E203", # Ignore whitespace before ':' (matches Black)
"B019", # Allow usages of functools.lru_cache
"B008", # Allow function call in argument defaults
# TODO: Enable these later
"B006", # Mutable args
"B017", # Do not assert blind exception
Expand All @@ -46,23 +58,6 @@ ignore = [
[tool.ruff.lint.mccabe]
max-complexity = 20

[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["datahub"]
extra-standard-library = ["__future__", "datahub.utilities._markupsafe_compat", "datahub.sql_parsing._sqlglot_patch"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
force-sort-within-sections = false
force-wrap-aliases = false
split-on-trailing-comma = false
order-by-type = true
relative-imports-order = "closest-to-furthest"
force-single-line = false
single-line-exclusions = ["typing"]
length-sort = false
from-first = false
required-imports = []
classes = ["typing"]

[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"

Expand Down

0 comments on commit 2bdfa9c

Please sign in to comment.