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 15, 2024
1 parent e8f63ba commit e079822
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 22 deletions.
23 changes: 8 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,9 @@ select = [
"C4", # flake8-comprehensions
"RUF", # Ruff-specific rules
"PL", # pylint
"UP" # pyupgrade
"UP" # pyupgrade
]


# future imports
# trailing comma
# other ruff rules
# search Optional, Union

[tool.ruff.lint.pyupgrade]
# need to use future annotations sometimes at least
# enable keep-runtime-typing true
# don't convert any Union or Optional
# Preserve types, even if a file imports `from __future__ import annotations`.
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 @@ -97,3 +83,10 @@ convention = "google"

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

[tool.ruff.lint.pyupgrade]
# need to use future annotations sometimes at least
# enable keep-runtime-typing true
# don't convert any Union or Optional
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Data Summary Node."""


import pandas as pd

try:
Expand Down
1 change: 0 additions & 1 deletion vizro-ai/src/vizro_ai/utils/helper.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Helper Functions For Vizro AI."""


import pandas as pd


Expand Down
1 change: 0 additions & 1 deletion vizro-ai/tests/integration/test_example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import vizro.plotly.express as px
from hamcrest import any_of, assert_that, contains_string, is_not, matches_regexp

Expand Down
1 change: 0 additions & 1 deletion vizro-core/examples/visual-vocabulary/custom_charts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Contains custom charts used inside the dashboard."""


import pandas as pd
import vizro.plotly.express as px
from plotly import graph_objects as go
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import pandas as pd
import plotly.graph_objects as go
import vizro.models as vm
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import pandas as pd
import plotly.graph_objects as go
import vizro.models as vm
Expand Down
1 change: 0 additions & 1 deletion vizro-core/tests/tests_utils/demo_asserts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Demo to show how to use asserts. These are not real tests that are run as part of testing, just a teaching aid."""


from asserts import STRIP_ALL, assert_component_equal
from dash import html

Expand Down

0 comments on commit e079822

Please sign in to comment.