Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.10.0 # Replace by any tag/version: https://github.com/psf/black/tags
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.3.1 # Replace by any tag/version: https://github.com/psf/black/tags
hooks:
- id: black
args: # arguments to configure black
Expand All @@ -15,14 +15,14 @@ repos:


- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 9.0.0a3
hooks:
- id: isort
name: isort (python)

# flake8
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
rev: 7.3.0
hooks:
- id: flake8
args: # arguments to configure flake8
Expand All @@ -33,7 +33,7 @@ repos:
# https://flake8.pycqa.org/en/latest/user/error-codes.html
- "--ignore=E203,E266,E501,W503,F403,F401,E402,F811"
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
rev: v1.5.6
hooks:
- id: insert-license
files: "^.*py$"
Expand Down
6 changes: 2 additions & 4 deletions client_code/Autocomplete/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
__version__ = "3.6.2"


_html_injector.css(
"""
_html_injector.css("""
.anvil-role-ae-autocomplete {
padding: 0 !important;
}
Expand Down Expand Up @@ -60,8 +59,7 @@
.anvil-role-ae-autocomplete a:hover, .anvil-role-ae-autocomplete a.anvil-role-ae-autocomplete-active {
background-color: #eee;
}
"""
)
""")


TB = _pluggable_ui["anvil.TextBox"]
Expand Down
6 changes: 2 additions & 4 deletions client_code/Chip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

__version__ = "3.6.2"

_html_injector.css(
""".ae-chip{
_html_injector.css(""".ae-chip{
height: 32px;
font-size: 14px;
font-weight: 500;
Expand All @@ -41,8 +40,7 @@
.ae-chip span, .ae-chip a > div {
padding: 0 !important;
}
"""
)
""")

_defaults = {
"icon": "",
Expand Down
6 changes: 2 additions & 4 deletions client_code/ChipsInput/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@

_primary = _get_color(None)

_html_injector.css(
"""
_html_injector.css("""
.ae-chips-input input {
box-shadow: none !important;
border: none !important;
Expand All @@ -36,8 +35,7 @@
padding-bottom: 4px;
}

"""
)
""")

_defaults = {
"primary_placeholder": "",
Expand Down
6 changes: 2 additions & 4 deletions client_code/Pivot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@

_jquery = anvil.js.window.jQuery

helpers._html_injector.css(
""".anvil-container-overflow, .anvil-panel-col {
helpers._html_injector.css(""".anvil-container-overflow, .anvil-panel-col {
overflow: visible;
}
.ae-pivot-container {
Expand All @@ -34,8 +33,7 @@
.pivot-placeholder {
overflow: auto
}
"""
)
""")

if "ui" not in _jquery.keys():
helpers._html_injector.cdn(jqueryui)
Expand Down
6 changes: 2 additions & 4 deletions client_code/Slider/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
HANDLE_SIZE = "--ae-slider-handle-size"


_html_injector.css(
f"""
_html_injector.css(f"""
.ae-slider-container {{
padding: calc(calc(var({HANDLE_SIZE}) - var({BAR_HEIGHT}) + 8px) / 2) calc(var({HANDLE_SIZE}) / 2);
}}
Expand All @@ -60,8 +59,7 @@
.noUi-pips-horizontal {{
height: 40px;
}}
"""
)
""")


import json
Expand Down
6 changes: 2 additions & 4 deletions client_code/Tabs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@

__version__ = "3.6.2"

_html_injector.css(
"""
_html_injector.css("""
.ae-tabs-container.anvil-role-card {
border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px;
Expand Down Expand Up @@ -104,8 +103,7 @@
background-color: rgb(from var(--color) r g b / 0.4);
}
}
"""
)
""")

if _supports_relative_colors():
_get_rgb = _get_color
Expand Down
6 changes: 2 additions & 4 deletions client_code/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,11 @@ def _compute(self):


# add a method to the window.Animation class for our convenience
_window.Function(
"""
_window.Function("""
Animation.prototype.wait = function() {
return this.finished;
};
"""
)()
""")()


class Animation:
Expand Down
Loading