-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
64 lines (53 loc) · 1.81 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
54
55
56
57
58
59
60
61
62
63
64
[tool.poetry]
name = "zeusops_attendance_analysis"
version = "0.2.0"
description = "Data analysis on the Zeusops ArmA unit attendance sheet"
authors = ["Jb Doyon <jb@jiby.tech>"]
readme = "README.md"
[tool.poetry.scripts]
zeusops-attendance-analysis = "zeusops_attendance_analysis.cli:cli"
[tool.poetry.dependencies]
python = "^3.10"
# Note: Linters not defined in this file but .pre-commit-config.yaml, which
# installs/manages each tool in its own isolated virtualenv
datasette = "^0.63"
sqlite-utils = "^3.30"
[tool.poetry.group.test.dependencies]
pytest = "7.*"
# Test coverage
pytest-cov = "3.*"
# Clearer assertion failures (colorful diff)
pytest-clarity = "1.*"
# Expose unittest.Mocker in pytest
pytest-mock = "*"
[tool.poetry.group.docs.dependencies]
# Main documentation-as-code (HTML/PDF generator)
Sphinx = "5.*"
# Read the docs (pretty) theme for sphinx
sphinx-rtd-theme = "1.*"
# Markdown parser for sphinx: Sphinx uses "RST" files, this adds markdown
myst-parser = "*"
# Automatic Python module docs (javadoc-style)
sphinx-autoapi = "*"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# Make isort work with Black
# Avoids conflicting imports
# As per https://pycqa.github.io/isort/docs/configuration/black_compatibility/#using-a-config-file-such-as-isortcfg
[tool.isort]
profile = "black"
multi_line_output = 3
# Avoid pointless warning about performance hit of f-string in loggers
[tool.pylint.message_control]
disable = ["logging-fstring-interpolation"]
[tool.pytest.ini_options]
addopts = """-vv \
--doctest-modules \
--cov=zeusops_attendance_analysis \
--cov-report=xml:test_results/coverage.xml \
--cov-report=html:test_results/coverage.html \
--cov-report=term \
--junit-xml=test_results/results.xml"""
[tool.mypy]
python_version = "3.10"