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 Oct 16, 2024
1 parent a4dbb91 commit 4f38fb9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
27 changes: 11 additions & 16 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ ignore = [
"D401", # first-line should be in imperative mood
# D407 needs to be ignored as it otherwise messes up the formatting in our API docs
"D407", # missing dashed underline after section
"PD901", # allow using the generic variable name `df` for DataFrames
"PD901" # allow using the generic variable name `df` for DataFrames
]
select = [
"E", # pycodestyle errors
Expand All @@ -69,23 +69,12 @@ select = [
"C4", # flake8-comprehensions
"RUF", # Ruff-specific rules
"PL", # pylint
"PD", # pandas-vet
"UP", # pyupgrade
"PERF", # perflint
"FURB", # refurb
"PD", # pandas-vet
"UP", # pyupgrade
"PERF", # perflint
"FURB" # refurb
]


# TODO:
# trailing comma
# think about pydantic to python. Correct docstrings in base. Think about tests.

[tool.ruff.lint.pyupgrade]
# Don't do PEP 604 rewrites (e.g. Union[str, int] -> str | int), even in files that import
# `from __future__ import annotations`. This is needed since pydantic relies on the runtime behavior in Python 3.9.
# When we drop Python 3.9 we can remove this setting.
keep-runtime-typing = true

[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and relative imports, ignore missing docstrings,
# compare to empty string
Expand All @@ -98,3 +87,9 @@ convention = "google"

[tool.ruff.lint.pylint]
max-args = 6

[tool.ruff.lint.pyupgrade]
# Don't do PEP 604 rewrites (e.g. Union[str, int] -> str | int), even in files that import
# `from __future__ import annotations`. This is needed since pydantic relies on the runtime behavior in Python 3.9.
# When we drop Python 3.9 we can remove this setting.
keep-runtime-typing = true
4 changes: 2 additions & 2 deletions vizro-core/docs/pages/user-guides/card-button.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ x = (1, 2, 3, 4)
```

```{.python pycafe-link}
x = (1, 2,
x = (1, 2,
3, 4)
```

!!! example "Card"
=== "app.py"
```{.python pycafe-link}
x = (1, 2,
x = (1, 2,
3, 4)

import vizro.models as vm
Expand Down

0 comments on commit 4f38fb9

Please sign in to comment.