Skip to content

Commit ff0c238

Browse files
committed
Move pylint and coverage configs to pyproject.toml
1 parent d957ac2 commit ff0c238

File tree

6 files changed

+29
-65
lines changed

6 files changed

+29
-65
lines changed

.coveragerc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.pylintrc

Lines changed: 0 additions & 49 deletions
This file was deleted.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ uninstall:
3535
test:
3636
# Unit tests with coverage report
3737
coverage erase
38-
coverage run --rcfile=./.coveragerc -m pytest -c tests/.configs/pytest.ini
39-
coverage report --rcfile=./.coveragerc
40-
coverage html --rcfile=./.coveragerc
38+
coverage run -m pytest -c tests/.configs/pytest.ini
39+
coverage report
40+
coverage html
4141

4242
check:
4343
flake8 src/dependency_injector/

pyproject.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,25 @@ dependency_injector = ["*.pxd", "*.pyi", "py.typed"]
7777

7878
[tool.setuptools.dynamic]
7979
version = {attr = "dependency_injector.__version__"}
80+
81+
[tool.coverage.run]
82+
branch = true
83+
relative_files = true
84+
source_pkgs = ["dependency_injector"]
85+
plugins = ["Cython.Coverage"]
86+
87+
[tool.coverage.html]
88+
directory = "reports/unittests/"
89+
90+
[tool.coverage.report]
91+
show_missing = true
92+
93+
[tool.isort]
94+
profile = "black"
95+
96+
[tool.pylint.main]
97+
ignore = ["tests"]
98+
99+
[tool.pylint.design]
100+
min-public-methods = 0
101+
max-public-methods = 30

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ pytest-asyncio
55
tox
66
coverage
77
flake8
8+
flake8-pyproject
89
pydocstyle
910
sphinx_autobuild
1011
pip

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ deps=
3434
coveralls>=4
3535
commands=
3636
coverage erase
37-
coverage run --rcfile=./.coveragerc -m pytest -c tests/.configs/pytest.ini
38-
coverage report --rcfile=./.coveragerc
37+
coverage run -m pytest -c tests/.configs/pytest.ini
38+
coverage report
3939
coveralls
4040

4141
[testenv:pypy3.9]
@@ -60,7 +60,7 @@ deps=
6060
flask<2.2
6161
werkzeug<=2.2.2
6262
commands=
63-
- pylint -f colorized --rcfile=./.pylintrc src/dependency_injector
63+
- pylint -f colorized src/dependency_injector
6464

6565
[testenv:flake8]
6666
deps=

0 commit comments

Comments
 (0)