-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (44 loc) · 1.4 KB
/
tox.ini
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
# SPDX-License-Identifier Apache-2.0
# Source: https://github.com/dmyersturnbull/typed-dfs
#
[tox]
min_version = 4
extras = dev
isolated_build = True
env_list = py311
[testenv]
allowlist_externals =
poetry
skipdist = True
# the - prefix means ignore nonzero exit codes
commands =
poetry check
poetry build
poetry install -v --extras "all"
poetry run pre-commit run check-toml
poetry run pre-commit run check-yaml
poetry run pre-commit run check-json
poetry run pytest -vv --cov-report term-missing --cov=typeddfs tests/
- poetry run ruff typeddfs
- poetry run ruff docs
- poetry run ruff tests
- poetry run sphinx-build -b html docs docs/_build
[coverage:run]
source = 'typeddfs'
[coverage:html]
directory = .coverage_report
[flake8]
max-line-length = 100
# black contradicts W503
# D107 is for missing docstring in __init__, which isn't a problem if the args are listed in the class docstring
# the rest just seem overly picky, which obscures real problems
# I'm ignoring D101,D102,D105 for now -- the code is in an alpha state
# S404,S603,S607 are security issues with subprocess that are unavoidable for typeddfs
ignore = W503,E203,E225,E301,E302,E501,D107,D200,D205,D400,D403,D409,D410,D411,D212,W391,W293,S404,S603,S607,D101,D102,D105
doctests = true
exclude = .git
__pycache__/
build/
dist/
import-order-style = google
docstring-convention = google