-
Notifications
You must be signed in to change notification settings - Fork 47
/
pyproject.toml
66 lines (57 loc) · 1.22 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
65
66
[tool.poetry]
name = "format_acronyms"
version = "1.0.0"
description = "Fixes some formatting issues in acronyms file"
authors = ["Department of Veterans Affairs"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.12"
csvkit = "^2.0.0"
python-dateutil = "^2.9.0.post0"
[tool.poetry.group.dev.dependencies]
pytest-cov = "^5.0.0"
ruff = "^0.6.5"
[tool.poetry.scripts]
format_acronyms = "format_acronyms.format_acronyms:main"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 120
target-version = "py312"
# linting
[tool.ruff.lint]
select = [
# flake8-comprehensions
"C4",
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-pytest
"PT",
# flake8-simplify
"SIM",
# isort
"I",
]
# testing
[tool.coverage.run]
branch = true
source = [
"format_acronyms",
]
omit = [
"**/__init__.py"
]
[tool.coverage.html]
directory = "results/coverage"
[tool.pytest.ini_options]
# Show extra test summary info as specified by chars (a)ll except passed
# Output test results to junit.xml
addopts = "-vvv --tb=long -ra --junitxml=results/unit/pytest-unit.xml --color=yes"
testpaths = "tests"