mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
- This way, we know what we are overriding and can use type annotations for libraries where they are available. - Invocation of mypy tool on command line becomes straight forward. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
108 lines
1.8 KiB
TOML
108 lines
1.8 KiB
TOML
[tool.isort]
|
|
known_first_party = ["plinth"]
|
|
|
|
[tool.coverage.run]
|
|
branch = true
|
|
omit = ["*/tests/*"]
|
|
|
|
[tool.coverage.report]
|
|
precision = 2
|
|
omit = ["*/tests/*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
addopts = "--ds=plinth.tests.data.django_test_settings"
|
|
markers = [
|
|
"essential",
|
|
"functional",
|
|
"skip",
|
|
"heavy",
|
|
"apps",
|
|
"avahi",
|
|
"backups",
|
|
"bepasty",
|
|
"bind",
|
|
"calibre",
|
|
"cockpit",
|
|
"config",
|
|
"coturn",
|
|
"datetime",
|
|
"deluge",
|
|
"domain",
|
|
"dynamicdns",
|
|
"ejabberd",
|
|
"email",
|
|
"gitweb",
|
|
"help",
|
|
"i2p",
|
|
"ikiwiki",
|
|
"infinoted",
|
|
"janus",
|
|
"jsxc",
|
|
"matrixsynapse",
|
|
"mediawiki",
|
|
"minetest",
|
|
"minidlna",
|
|
"mumble",
|
|
"openvpn",
|
|
"pagekite",
|
|
"performance",
|
|
"privacy",
|
|
"privoxy",
|
|
"quassel",
|
|
"radicale",
|
|
"roundcube",
|
|
"rssbridge",
|
|
"samba",
|
|
"searx",
|
|
"security",
|
|
"shaarli",
|
|
"shadowsocks",
|
|
"shadowsocksserver",
|
|
"sharing",
|
|
"snapshot",
|
|
"ssh",
|
|
"sso",
|
|
"storage",
|
|
"syncthing",
|
|
"system",
|
|
"tor",
|
|
"transmission",
|
|
"ttrss",
|
|
"upgrades",
|
|
"users",
|
|
"wireguard",
|
|
"wordpress",
|
|
"zoph",
|
|
]
|
|
|
|
# Useful when pylint is invoked separately instead of flake8
|
|
[tool.pylint.'MESSAGES CONTROL']
|
|
disable = [
|
|
"too-many-arguments", # Has not resulted in a refactoring
|
|
"too-many-ancestors", # Easy to hit when using Django
|
|
]
|
|
|
|
# Ignore missing type stubs for some libraries. Try to keep this list minimal
|
|
# and use type annotations where available.
|
|
[[tool.mypy.overrides]]
|
|
module = [
|
|
"aptsources.*",
|
|
"augeas.*",
|
|
"axes.*",
|
|
"captcha.*",
|
|
"cherrypy.*",
|
|
"configobj.*",
|
|
"dbus.*",
|
|
"django.*",
|
|
"gi.*",
|
|
"pam.*",
|
|
"pgi.*",
|
|
"plinth.tests.config_local",
|
|
"pytest_splinter.*",
|
|
"ruamel.*",
|
|
"selenium.*",
|
|
"splinter.*",
|
|
"stronghold.*",
|
|
]
|
|
ignore_missing_imports = true
|