mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 02:52:12 +00:00
Migrate to hatchling (#1095)
* Migrate to hatchling instead of poetry, ruff instead of flake8 * Migrate to hatchling instead of poetry, ruff instead of flake8 * Update tests suite * venv? * -m venv? * Change dependencies * Remove venv * Change mypy config * Added changelog * Mark uvloop incompatible with pypy * Update release script * Use internal caching for dependencies * Re-disable cov branches * Added contributing guide
This commit is contained in:
parent
04ccb390d5
commit
f4ce4431f9
58 changed files with 799 additions and 3001 deletions
|
|
@ -19,34 +19,8 @@ repos:
|
|||
- id: black
|
||||
files: &files '^(aiogram|tests|examples)'
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-isort
|
||||
rev: v5.10.1
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: 'v0.0.215'
|
||||
hooks:
|
||||
- id: isort
|
||||
additional_dependencies: [ toml ]
|
||||
files: *files
|
||||
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.9.2
|
||||
hooks:
|
||||
- id: flake8
|
||||
args: [ '--config=.flake8' ]
|
||||
files: *files
|
||||
|
||||
- repo: https://github.com/floatingpurr/sync_with_poetry
|
||||
rev: 0.2.0
|
||||
hooks:
|
||||
- id: sync_with_poetry
|
||||
|
||||
- repo: https://github.com/python-poetry/poetry
|
||||
rev: '1.2.1'
|
||||
hooks:
|
||||
- id: poetry-check
|
||||
- id: poetry-lock
|
||||
args: [ "--no-update" ]
|
||||
- id: poetry-export
|
||||
args: [ "-f", "requirements.txt", "--without-hashes", "-o", "requirements/base.txt" ]
|
||||
- id: poetry-export
|
||||
args: [ "-f", "requirements.txt", "--without-hashes", "-o", "requirements/docs.txt",
|
||||
"-E", "fast", "-E", "redis", "-E", "proxy", "-E", "i18n",
|
||||
"--with", "docs" ]
|
||||
- id: ruff
|
||||
args: [ "--force-exclude" ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue