chore: poetry things

This commit is contained in:
Laureηt 2023-01-27 17:55:05 +01:00
parent bd82b784dd
commit c0d5765da6
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
3 changed files with 2281 additions and 0 deletions

2214
poetry.lock generated Normal file

File diff suppressed because it is too large Load diff

3
poetry.toml Normal file
View file

@ -0,0 +1,3 @@
[virtualenvs]
create = true
in-project = true

64
pyproject.toml Normal file
View file

@ -0,0 +1,64 @@
[tool.poetry]
authors = [
"Laurent Fainsin <laurent@fainsin.bzh>",
"Damien Guillotin <damien.guillotin@etu.inp-n7.fr>",
]
description = ""
license = "MIT"
name = "AI_or_not"
version = "0.1.0"
[tool.poetry.dependencies]
albumentations = "^1.3.0"
python = ">=3.8.1,<4.0"
rich = "^12.6.0"
torch = "^1.13.1"
[tool.poetry.group.notebooks]
optional = true
[tool.poetry.group.notebooks.dependencies]
ipykernel = "^6.20.2"
matplotlib = "^3.6.3"
[tool.poetry.group.dev.dependencies]
Flake8-pyproject = "^1.1.0"
bandit = "^1.7.4"
black = "^22.8.0"
flake8 = "^5.0.4"
flake8-docstrings = "^1.6.0"
isort = "^5.10.1"
mypy = "^0.971"
pre-commit = "^2.20.0"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]
[tool.flake8]
# rules ignored
extend-ignore = ["W503", "D401", "D100", "D104"]
per-file-ignores = ["__init__.py:F401"]
# black
ignore = "E203"
max-line-length = 120
[tool.black]
exclude = '''
/(
\.git
\.venv
)/
'''
include = '\.pyi?$'
line-length = 120
target-version = ["py310"]
[tool.isort]
multi_line_output = 3
profile = "black"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true