-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
53 lines (43 loc) · 1.29 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[build-system]
requires = ["setuptools>=51"]
build-backend = "setuptools.build_meta"
[tool.pytest.ini_options]
minversion = "7.0"
addopts = "-ra -q"
testpaths = ["tests/unit"]
[tool.coverage.run]
branch = true
source = ["hijri_converter"]
[tool.coverage.paths]
source = ["src"]
[tool.black]
line-length = 80
target-version = ["py37", "py38", "py39", "py310", "py311"]
[tool.isort]
profile = "black"
[tool.pylint.reports]
score = false
[tool.pylint.format]
max-line-length = 80
expected-line-ending-format = "LF"
[tool.pylint.master]
py-version = "3.7"
[tool.mypy]
python_version = "3.7"
strict = true
[tool.taskipy.tasks]
test = "task test_cov tests"
test_min = "pytest"
test_all = "pytest tests"
test_cov = "pytest --cov --cov-report=term-missing --cov-fail-under=100"
test_cov_html = "pytest --cov --cov-report=term --cov-report=html"
lint = "task lint_isort && task lint_black && task lint_pylint && task lint_mypy"
lint_isort = "isort --check-only src tests"
lint_black = "black --check --quiet src tests"
lint_pylint = "pylint src"
lint_mypy = "mypy src"
format = "isort src tests && black src tests"
upgrade = "task upgrade_dev && task upgrade_docs"
upgrade_dev = "pip install -U -r requirements-dev.txt"
upgrade_docs = "pip install -U -r docs/requirements.txt"
docs = "sphinx-build -E docs docs/_build"