-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
89 lines (73 loc) · 1.59 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
[project]
name = "webservice"
version = "1.0"
description = "A simple web application to fetch OMDB movies"
readme = "README.md"
maintainers = [
{ name = "Pradeep Tammali", email = "[email protected]" },
]
[tool.autopep8]
in-place = false
max_line_length = 120
[tool.black]
line-length = 120
skip-string-normalization = true
[tool.ruff]
ignore = [
# format
'E501', # line too long
]
line-length = 120
select = [
'E', # Errors
'W', # Warnings
'F', # Formatting
'S', # Bandit
]
target-version = 'py311'
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.per-file-ignores]
# Ignore assert usage in tests
'tests/*.py' = ['S101']
[tool.isort]
profile = "black"
line_length = 120
[tool.flake8]
ignore = ['E501', 'W503', 'W504']
[tool.pytest.ini_options]
env = [
'APP_ENVIRONMENT = unittest',
# Uncomment following for pytest to choose mysql as database
'SERVICE_DATABASE_USER = root',
'SERVICE_DATABASE_PASSWORD = 1234',
'SERVICE_DATABASE_HOST = localhost',
'SERVICE_DATABASE_PORT = 3308',
]
[tool.coverage.run]
include = ['omdb/*']
[tool.coverage.report]
show_missing = true
exclude_lines = ['if TYPE_CHECKING:']
[[tool.mypy.overrides]]
ignore_missing_imports = true
implicit_optional = true
module = 'omdb.*'
[tool.pylint.MASTER]
ignore-paths = ['tests/*']
[tool.pylint.FORMAT]
indent-string = ' '
max-line-length = 120
[tool.pylint."MESSAGES CONTROL"]
disable = '''
missing-docstring,
line-too-long,
import-error,
fixme,
no-value-for-parameter,
too-few-public-methods
'''
[tool.bandit]
exclude_dirs = ["tests/*"]