[tool:pytest]
python_files = *.py
addopts = --tb=short --strict
testpaths = tests
norecursedirs = .git _build tmp* requirements commands/*
markers = 
	cmd: Django admin commands.
filterwarnings = 
	# Error by default
	error
	## Deprecation related issues:
	## * Not clean:
	##   - default - in our own code till they are fixed (we can see what we
	##     need to fix, but builds don't break)
	##   - ignore - in other's code (no noise please, clean ours first)
	## * Clean:
	##   - error - in our own code (don't regress)
	##   - default - in other's code if they are not fixed.  Be specific about
	##     what module so we don't allow other brokenness in (able to watch
	##     others fixing their code, don't hide it)
	##   - error - if we have no occurances in our's or other's code (keep it
	##     clean - should essentially not be listed and falls to default error
	##     behaviour)
	#
	## Note: Sadly can't use RemovedInDjango20Warning directly
	#
	## Add new suppresions in the sections below:
	# See https://docs.python.org/2/library/warnings.html#the-warnings-filter
	# action:message:category:module:lineno
	#
	## Not Clean
	default:.*load_template_sources\(\) method is deprecated..*
	#
	## Clean
	#
	## Other
	ignore:With-statements now directly support multiple context managers:DeprecationWarning:.*contextmanagers
	ignore:Not importing directory '.*pootle/pootle/assets'. missing __init__.py:ImportWarning
	ignore:Not importing directory '.*pootle/apps/.*/migrations'. missing __init__.py:ImportWarning
	ignore:Not importing directory '.*pootle/apps/.*/templatetags'. missing __init__.py:ImportWarning

[pydocstyle]
inherit = false
select = 
add-select = D201,D204,D206,D207,D208,D209,D210,D211,D300,D301,D302

[pycodestyle]
max-line-length = 84
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,migrations,conf.py,_build,.tox,pootle/static,pootle/translations,pootle/locale,pootle/assets,templates,.eggs,env,build,dist
ignore = E129,E226,E402,E731,W503
statistics = True

[flake8]
max-line-length = 84
exclude = .svn,CVS,.bzr,.hg,.git,__pycache__,migrations,conf.py,_build,.tox,pootle/static,pootle/translations,pootle/locale,pootle/assets,templates,.eggs,env,build,dist
ignore = E129,E226,E402,E731,W503,I,N
statistics = True

[isort]
line_length = 79
skip = .tox,
	.eggs,
	dist,
	migrations,
	node_modules,
	commands,
	tests,
	conf.py,
	pootle/apps/pootle_checks/receivers.py,
	pootle/apps/pootle_checks/utils.py,
	pootle/apps/pootle_data/getters.py,
	pootle/apps/pootle_fs/forms.py
	pootle/apps/pootle_fs/getters.py
	pootle/apps/pootle_fs/plugin.py
	pootle/apps/pootle_language/urls.py,
	pootle/apps/pootle_language/views.py,
	pootle/apps/pootle_log/getters.py
	pootle/apps/pootle_log/utils.py
	pootle/apps/pootle_profile/utils.py
	pootle/apps/pootle_project/urls.py,
	pootle/apps/pootle_project/views.py,
	pootle/apps/pootle_revision/getters.py,
	pootle/apps/pootle_store/contextmanagers.py
	pootle/apps/pootle_score/getters.py
	pootle/apps/pootle_store/forms.py,
	pootle/apps/pootle_store/getters.py,
	pootle/apps/pootle_store/models.py,
	pootle/apps/pootle_store/providers.py
	pootle/apps/pootle_store/unit/results.py,
	pootle/apps/pootle_store/unit/timeline.py,
	pootle/apps/pootle_store/utils.py
	pootle/apps/pootle_store/views.py
	pootle/apps/pootle_translationproject/contextmanagers.py
	pootle/apps/pootle_translationproject/models.py,
	pootle/apps/pootle_translationproject/urls.py,
	pootle/apps/pootle_translationproject/views.py,
	pootle/apps/virtualfolder/getters.py,
	pootle/core/contextmanagers.py
	pootle/core/management/subcommands.py,
	pootle/core/search/backends/elasticsearch.py,
	pootle/core/utils/version.py,
	pootle/core/views/browse.py
	pootle/middleware/errorpages.py,
	pytest_pootle/fixtures/models/store.py
	pytest_pootle/plugin.py
known_standard_library = 
known_third_party = elasticsearch,translate,pytest_pootle
known_django = django
known_djangoexternal = allauth,contact_form,django_rq,django_comments,sortedm2m
known_first_party = staticpages,import_export,pootle_fs,pootle
default_section = FIRSTPARTY
sections = FUTURE,STDLIB,THIRDPARTY,DJANGO,DJANGOEXTERNAL,FIRSTPARTY,LOCALFOLDER
indent = 4
multi_line_output = 0
order_by_type = True
combine_as_imports = True
lines_after_imports = 2

[coverage:run]
omit = 
	*/migrations/*
	setup.py
	.tox/*
	tests/settings.py
	run_coveralls.py
	pootle/strings.py
	pytest_pootle/__init__.py
	pytest_pootle/plugin.py

[egg_info]
tag_build = 
tag_date = 0

