Skip to content

Commit

Permalink
0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
loRes228 committed Jul 30, 2024
1 parent 72929d7 commit 9ddf92f
Show file tree
Hide file tree
Showing 123 changed files with 2,915 additions and 3,851 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.9"
cache: pip
cache-dependency-path: pyproject.toml

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- macos-latest
- windows-latest
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
Expand All @@ -44,7 +43,7 @@ jobs:
cache-dependency-path: pyproject.toml

- name: Install dependencies
run: python -m pip install --upgrade .[dev,test,redis,mongo,sqlalchemy] build pip aiogram
run: python -m pip install --upgrade ".[all]" build pip

- name: Lint code
run: make lint
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
.idea/
.vscode/
.cache/
.codegen/
dist/
__pycache__/
.python-version
24 changes: 9 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PACKAGE_DIRECTORY = aiogram_broadcaster
EXAMPLES_DIRECTORY = examples
TESTS_DIRECTORY = tests
CODE_DIRECTORIES = ${PACKAGE_DIRECTORY} ${TESTS_DIRECTORY} ${EXAMPLES_DIRECTORY}
EXAMPLES_DIRECTORY = examples
BUTCHER_DIRECTORY = butcher
CACHE_DIRECTORY = .cache
REPORTS_DIRECTORY = ${CACHE_DIRECTORY}/reports
CODE_DIRECTORIES = ${PACKAGE_DIRECTORY} ${TESTS_DIRECTORY} ${EXAMPLES_DIRECTORY} ${BUTCHER_DIRECTORY}


all: lint
Expand Down Expand Up @@ -31,8 +31,8 @@ lint:

.PHONY: format
format:
ruff check --fix --unsafe-fixes ${PACKAGE_DIRECTORY}
ruff format ${CODE_DIRECTORIES}
ruff check --fix ${PACKAGE_DIRECTORY}


# =====================================
Expand All @@ -43,22 +43,16 @@ format:
test:
pytest

.PHONY: test-report
test-report:
pytest --cov ${PACKAGE_DIRECTORY} --html "${REPORTS_DIRECTORY}/tests/index.html"
coverage html --directory "${REPORTS_DIRECTORY}/coverage"

.PHONY: test-report-view
test-report-view:
-$(MAKE) test-report
python -m webbrowser "${CURDIR}/${REPORTS_DIRECTORY}/tests/index.html"
python -m webbrowser "${CURDIR}/${REPORTS_DIRECTORY}/coverage/index.html"


# =====================================
# Project
# =====================================

.PHONY: butcher
butcher:
python -m butcher
$(MAKE) format

.PHONY: release
release:
git tag "v$(shell hatch version)"
Loading

0 comments on commit 9ddf92f

Please sign in to comment.