-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
92 lines (84 loc) · 1.93 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
[tool.pytest.ini_options]
pythonpath = [
".",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"serial",
"api: marks tests as API tests (deselect with '-m \"not api\"')",
"unit: marks tests as unit tests (deselect with '-m \"not unit\"')",
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
"functional: marks tests as functional tests (deselect with '-m \"not functional\"')",
"data: marks tests as data-related tests (deselect with '-m \"not data\"')",
"model: marks tests as model-related tests (deselect with '-m \"not model\"')",
"helper: marks tests as helper-related tests (deselect with '-m \"not helper\"')",
]
[tool.pylint.main]
init-hook = "import sys; sys.path.insert(0, '.')"
load-plugins = [
"pylint_flask",
]
jobs = 4
ignore=[
"migrations",
]
[tool.pylint."MESSAGES CONTROL"]
disable = [
"no-member",
]
[tool.mypy]
exclude = [
'.git',
'__pycache__',
'migrations',
]
show_error_codes = true
#once we've refactored the code, we can enable this
#check_untyped_defs = true
pretty = true
files = [
".",
]
#mypy_path = "."
#namespace_packages = true
#explicit_package_bases = true
[[tool.mypy.overrides]]
module = [
"flask_wtf.*",
"wtforms.*",
# "wtforms",
"sqlalchemy_json.*",
"genson.*",
"flask_login.*",
"flask_mail.*",
"flask_bcrypt.*",
"flask_migrate.*",
"celery.*",
]
ignore_missing_imports = true
[tool.flake8]
# ignore = ['E231', 'E241']
per-file-ignores = [
'__init__.py:F401',
'tests/conftest.py:E501',
'nlp4all/controllers/analyses.py:W503',
'nlp4all/models/bayesian_analysis.py:W503',
'nlp4all/models/confusion_matrix.py:W503, W504',
]
exclude = [
'.git',
'__pycache__',
'migrations',
]
max-line-length = 120
count = true
ignore = "D"
[tool.autoflake]
check = true
recursive = true
[tool.yapfignore]
ignore_patterns = [
"migrations/*",
]
[tool.yapf]
based_on_style = 'pep8'