-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
92 lines (81 loc) · 2.34 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
[build-system]
requires = ['hatchling']
build-backend = 'hatchling.build'
[tool.hatch.version]
path = 'fastapi_translations/version.py'
[project]
name = 'fastapi-translations'
description = 'Translations report for FastAPI docs'
authors = [
{ name = 'Rafael de Oliveira Marques', email = '[email protected]' },
]
license = 'MIT'
readme = 'README.md'
classifiers = [
'Development Status :: 3 - Alpha',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.12',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
'Operating System :: Microsoft',
'Environment :: Console',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet',
]
requires-python = '>=3.12'
dependencies = [
'gitpython==3.1.43',
'pydantic==2.8.2',
'typer==0.12.3'
]
dynamic = ['version']
[project.scripts]
fastapi_translations = "fastapi_translations.cli:main"
[tool.pytest.ini_options]
testpaths = 'tests'
log_cli = true
log_cli_level = "ERROR"
log_cli_format = "%(message)s"
[tool.coverage.run]
source = ['fastapi_translations']
branch = true
context = '${CONTEXT}'
[tool.coverage.report]
precision = 2
[tool.coverage.paths]
source = ['fastapi_translations/']
[tool.ruff]
line-length = 80
target-version = 'py312'
[tool.ruff.lint]
extend-select = ['Q', 'RUF100', 'C90', 'UP', 'I']
flake8-quotes = { inline-quotes = 'double', multiline-quotes = 'double' }
isort = { known-first-party = ['fastapi_translations', 'tests'] }
mccabe = { max-complexity = 14 }
pydocstyle = { convention = 'google' }
[tool.ruff.format]
quote-style = 'double'
indent-style = 'space'
[tool.mypy]
python_version = '3.12'
show_error_codes = true
follow_imports = 'silent'
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
check_untyped_defs = true
no_implicit_reexport = true
warn_unused_configs = true
disallow_subclassing_any = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_untyped_calls = true
disallow_untyped_defs = true