Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 20, 2024
1 parent a5675d1 commit c8f41a1
Showing 1 changed file with 36 additions and 45 deletions.
81 changes: 36 additions & 45 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,58 +65,57 @@ skip-string-normalization = true
[tool.ruff]
line-length = 100

[tool.ruff.lint]
select = [
lint.select = [
"B", # flake8-bugbear
"C",
'D', # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"W", # pycodestyle
# "T4",
"B9",
"C",
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"W", # pycodestyle
]
ignore = [
lint.ignore = [
"C901",
"D100", # Missing docstring in public module
"D107", # Missing docstring in `__init__`
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in `__init__`
"E402",
# "E203",
# "E266",
"E501",
# "W503",
"E722",
"E402",
"C901",
]
exclude = [
"tests/",
lint.exclude = [
"docs/",
"tests/",
]

[tool.ruff.lint.per-file-ignores]
"tests/*" = [
lint.per-file-ignores."docs/*" = [
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
]
lint.per-file-ignores."tests/*" = [
"D103", # Missing docstring in public function
"D205", # blank line between summary and description
"D415", # first line should end with punctuation
]
"docs/*" = [
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
# Allow fastapi.Depends and other dependency injection style function arguments
lint.flake8-bugbear.extend-immutable-calls = [
"fastapi.Depends",
"fastapi.Path",
"fastapi.Query",
]

[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 18

[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = [
lint.flake8-quotes.docstring-quotes = "double"
lint.flake8-quotes.inline-quotes = "single"
lint.isort.combine-as-imports = true
lint.isort.known-first-party = [
"xpublish",
]
known-third-party = [
lint.isort.known-third-party = [
"cachey",
"dask",
"fastapi",
Expand All @@ -134,24 +133,16 @@ known-third-party = [
"xarray",
"zarr",
]

[tool.ruff.lint.pydocstyle]
# Unlike Flake8, default to a complexity level of 10.
lint.mccabe.max-complexity = 18
# Use Google style docstrings
convention = "google"

[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
docstring-quotes = "double"

[tool.ruff.lint.flake8-bugbear]
# Allow fastapi.Depends and other dependency injection style function arguments
extend-immutable-calls = [
"fastapi.Depends",
"fastapi.Query",
"fastapi.Path",
]
lint.pydocstyle.convention = "google"

[tool.pytest.ini_options]
log_cli = true
log_level = "INFO"
addopts = "--cov=./ --cov-report=xml --verbose"



[tool.ruff.lint.flake8-bugbear]

0 comments on commit c8f41a1

Please sign in to comment.