Skip to content

Commit

Permalink
chore: adopt ruff and add pre commit ci (#113)
Browse files Browse the repository at this point in the history
* chore: adopt ruff and add pre commit ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
sansyrox and pre-commit-ci[bot] authored Nov 15, 2023
1 parent c6b9bd5 commit 8e000e0
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 169 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: ruff
args:
- --fix
- id: ruff-format
ci:
autoupdate_schedule: weekly
313 changes: 154 additions & 159 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ requests = "^2.29.0"


[tool.poetry.group.dev.dependencies]
ruff = "^0.0.263"
ruff = "^0.1.4"
black = "^23.3.0"
commitizen = "^3.5.3"

Expand Down
2 changes: 0 additions & 2 deletions starfyre/dom_methods.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import inspect
import re
from functools import partial
from uuid import uuid4

from .component import Component
from .transpiler import transpile_to_js


def assign_event_listeners(id, event_listener_name, event_listener):
Expand Down
6 changes: 0 additions & 6 deletions starfyre/js/dom_methods.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import re
from functools import partial

import js


def assign_event_listeners(component, event_listeners):
for event_listener_name, event_listener in event_listeners.items():
event_type = event_listener_name.lower()[2:]
Expand Down
1 change: 0 additions & 1 deletion starfyre/js/store.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# import uuid

import math
import random

import js
Expand Down

0 comments on commit 8e000e0

Please sign in to comment.