Skip to content
Merged
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
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2
updates:
- package-ecosystem: 'uv'
directory: '/'
schedule:
interval: 'weekly'
day: 'monday'
time: '09:00'
timezone: 'Europe/Istanbul'
open-pull-requests-limit: 5
groups:
minor-patch:
update-types:
- 'minor'
- 'patch'
labels:
- 'dependencies'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'monthly'
labels:
- 'dependencies'
- 'ci'
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: [main]
pull_request:
branches: [main]

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
test:
name: Lint · Test
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7

- uses: astral-sh/setup-uv@v7
with:
python-version: '3.12'
enable-cache: true

- name: Install dependencies
run: uv sync --frozen

- name: Lint (ruff)
run: uvx ruff check .

- name: Test (pytest)
run: uv run --frozen pytest -q
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["src/avimsin"]

[tool.ruff.lint]
# Errors only (pyflakes + syntax/runtime pycodestyle checks); style is not enforced.
select = ["E4", "E7", "E9", "F"]
2 changes: 1 addition & 1 deletion src/avimsin/alerts/watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def detect_signals(
def format_signal(signal: Signal, threshold: int) -> str:
"""Sinyali Telegram mesajına çevirir."""
lines = [
f"🏹 <b>Avımsın sinyali</b>",
"🏹 <b>Avımsın sinyali</b>",
f"Coin: <code>{signal.coin}</code>",
f"{len(signal.wallets)}/{threshold} smart wallet'a token girişi:",
"Transfer tabanlı gösterge; doğrulanmış swap/alım değildir.",
Expand Down
2 changes: 1 addition & 1 deletion src/avimsin/scoring/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from dataclasses import dataclass

from ..collectors.transfers import ZERO_ADDRESS, TransferEvent
from ..collectors.transfers import ZERO_ADDRESS
from ..filters.base import WalletHistory


Expand Down
1 change: 0 additions & 1 deletion tests/fake_evm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import httpx

from avimsin.chains.base import TRANSFER_TOPIC
from avimsin.collectors.transfers import ZERO_ADDRESS

CHAIN_ID = 4663

Expand Down
Loading