Skip to content

Commit

Permalink
Copy configuration from tx-service
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Jan 30, 2023
1 parent 106e432 commit 63f5ec1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ coverage==6.5.0
faker==16.6.0
pytest==7.2.1
pytest-django==4.5.2
pytest-env==0.8.1
pytest-rerunfailures==11.0
pytest-sugar==0.9.6
36 changes: 35 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ django =
[flake8]
max-line-length = 88
select = C,E,F,W,B,B950
extend-ignore = E203, E501
extend-ignore = E203,E501,F841,W503
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules,venv

[pycodestyle]
Expand All @@ -77,3 +77,37 @@ known_first_party = gnosis
known_gnosis = py_eth_sig_utils
known_django = django
sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,GNOSIS,FIRSTPARTY,LOCALFOLDER

[tool:pytest]
env =
DJANGO_SETTINGS_MODULE=config.settings.test

[mypy]
python_version = 3.10
check_untyped_defs = True
ignore_missing_imports = True
warn_unused_ignores = True
warn_redundant_casts = True
warn_unused_configs = True

[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if __name__ == .__main__.:
if settings.DEBUG

# Ignore pass lines
pass

[coverage:run]
include = safe_transaction_service/*
omit =
*__init__.py*
*tests*
*/migrations/*

0 comments on commit 63f5ec1

Please sign in to comment.