forked from fipl-hse/2023-2-level-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
101 lines (88 loc) · 1.87 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
[tool.pytest.ini_options]
markers = [
"mark4: tests for level 4",
"mark6: tests for level 6",
"mark8: tests for level 8",
"mark10: tests for level 10",
"lab_1_classify_by_unigrams: tests for lab 1",
"lab_2_tokenize_by_bpe: tests for lab 2",
"lab_3_generate_by_ngrams: tests for lab 3",
"lab_4_fill_words_by_ngrams: tests for lab 4"
]
norecursedirs = [
"venv*"
]
[tool.coverage.run]
omit = [
'*/tests/*',
'*/start.py'
]
[tool.mypy]
python_version = '3.10'
exclude = [
'venv*',
'test.py'
]
disallow_untyped_defs = true
disallow_any_unimported = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = false
# simplifications
disable_error_code = [
'var-annotated',
'union-attr',
# needed for seminars, to this moment not fixed: https://github.com/python/mypy/issues/9440
'attr-defined'
]
[[tool.mypy.overrides]]
module = ['memory_profiler', 'ghapi.all', 'ast_comments', 'pydantic', 'transformers']
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ['seminars.*', ]
disable_error_code = [
'empty-body'
]
[[tool.mypy.overrides]]
module = ['*.nmt_demo.*', ]
disable_error_code = [
'no-any-unimported',
'no-any-return'
]
[tool.black]
line-length = 100
target-version = ['py310']
[tool.isort]
py_version = '310'
skip_gitignore = true
line_length = 100
order_by_type = true
remove_redundant_aliases = true
group_by_package = true
force_alphabetical_sort_within_sections = true
[tool.doc8]
allow-long-titles = true
max-line-length = 100
ignore = ['D004']
ignore-path = [
'venv*',
'build/'
]
[tool.pydocstyle]
convention = 'google'
add-select = ['D213']
add-ignore = [
'D212',
'D200'
]
[tool.flake8]
max-line-length = 100
exclude = [
'venv*',
'build/'
]
application_import_names = ['config']
select = ['I']
count = true