-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathsetup.cfg
More file actions
39 lines (32 loc) · 843 Bytes
/
setup.cfg
File metadata and controls
39 lines (32 loc) · 843 Bytes
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
[flake8]
max-line-length = 120
exclude= env, venv, node_modules, build
ignore = E203, E266, E501, W503,
per-file-ignores =
newsroom/commands/__init__.py: F401
[mypy]
python_version = 3.10
allow_untyped_globals = True
ignore_missing_imports = True
plugins = pydantic.mypy
exclude = (env|e2e|node_modules|scripts|docker|dist|assets|docs)
[mypy-newsroom.core]
allow_untyped_globals = False
[tool:pytest]
testpaths=tests
addopts=--tb=short
asyncio_mode=auto
asyncio_default_fixture_loop_scope=function
[extract_messages]
input_dirs = newsroom,assets
output_file = messages.pot
mapping_file = mapping.cfg
keywords = _ lazy_gettext ngettext
[init_catalog]
input_file = messages.pot
output_dir = newsroom/translations
[update_catalog]
output_dir = newsroom/translations
[compile_catalog]
directory = newsroom/translations
use_fuzzy = true