Skip to content

Commit

Permalink
build: fix for using pyproject.tom
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine DECHAUME committed Jun 5, 2023
1 parent 14d0728 commit dcbc1df
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ Tracker = "https://github.com/AntoineD/docstring-inheritance/issues"

[tool.black]
target-version = ['py38']

[tool.pytest.ini_options]
testpaths = ["tests"]

[tool.coverage.run]
plugins = ["covdefaults"]
source = ["docstring_inheritance"]
11 changes: 11 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[flake8]
ignore =
# No docstring for standard and private methods.
D105
W503
# select = B,C,D,E,F,G,N,T,W
select = B,B950,C,E,F,G,N,T,W
# Settings for compatibility with black, see black docs
max-line-length = 88
docstring-convention = google
extend-ignore = E203, E501
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package = wheel
deps =
-r requirements/test.txt
set_env =
coverage: __COVERAGE_POSARGS=--cov --cov-config=setup.cfg --cov-report=xml --cov-report=html
coverage: __COVERAGE_POSARGS=--cov --cov-config=pyproject.toml --cov-report=xml --cov-report=html
commands =
pytest {env:__COVERAGE_POSARGS:} {posargs}

Expand Down

0 comments on commit dcbc1df

Please sign in to comment.