Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PyProject #23

Merged
merged 15 commits into from
Nov 28, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy flake8
pip install mypy flake8 Flake8-pyproject
- name: Analysing the code with mypy
run: |
mypy tgbot --install-types --non-interactive
Expand Down
53 changes: 53 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[tool.flake8]
max-line-length = 120
exclude = [
".git",
"__pycache__",
"docs/source/conf.py",
"build",
"dist",
"tests",
"alembic"
]
ignore = [
"I101",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D107",
"D401",
"E203",
"I900",
"N802",
"N806",
"N812",
"W503",
"S311",
"S605",
"S607",
"ISC003",
"ISC001",
"T101",
"T000",
"F541",
"PL123",
"E712"
]
per-file-ignores = [
'__init__.py:F401',
]

[tool.mypy]
ignore_missing_imports = true
disallow_untyped_defs = true
check_untyped_defs = true
warn_redundant_casts = true
no_implicit_optional = true
strict_optional = true
show_error_codes = true
strict_equality = true
warn_unreachable = true
warn_unused_configs = true
12 changes: 6 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
aiogram==2.23.1
aiogram==2.25.1
aioredis~=2.0
environs~=9.0
environs~=9.5
git+https://github.com/TimNekk/aiogram_broadcaster.git
gino==1.0.1
loguru==0.6.0
alembic==1.8.1
psycopg2==2.9.3
validators==0.20.0
loguru==0.7.0
alembic==1.11.1
psycopg2==2.9.6
validators==0.20.0
18 changes: 0 additions & 18 deletions setup.cfg

This file was deleted.