-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathpyproject.toml
57 lines (48 loc) · 1.36 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[tool.poetry]
name = "ds-project"
version = "0.1.0"
description = "Template repository to start your Data Science or Machine Learning project from"
authors = ["Vladilav Goncharenko <[email protected]>"]
maintainers = ["Vladislav Goncharenko <[email protected]>"]
readme = "README.md"
repository = "https://github.com/v-goncharenko/data-science-template"
documentation = "https://girafe.ai/"
keywords = ["reproducibility", "data science", "machine learning", "template"]
license = "Apache-2.0"
[tool.poetry.dependencies]
python = "~3.11"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.6.0"
pytest = "^7.4.4"
[tool.black]
line-length = 90
target-version = ["py311"]
[tool.isort]
src_paths = ["ds_project"]
profile = "black"
line_length = 90
lines_after_imports = 2
[tool.flake8]
max-line-length = 90
ignore = ['E203', 'E501', 'W503', 'B950']
max-complexity = 12
select = ['B', 'C', 'E', 'F', 'W', 'B9']
per-file-ignores = [
# for easier imports to __init__ without __all__
'**/__init__.py: F401',
# file to define custom types
'types.py: F401',
]
count = true
[tool.nbqa.config]
black = "pyproject.toml"
isort = "pyproject.toml"
flake8 = "pyproject.toml"
[tool.nbqa.addopts]
flake8 = ["--extend-ignore=E402"]
[tool.nbqa.mutate]
black = 1
isort = 1
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"