forked from MeltanoLabs/target-postgres
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (37 loc) · 826 Bytes
/
tox.ini
File metadata and controls
41 lines (37 loc) · 826 Bytes
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
# This file can be used to customize tox tests as well as other test frameworks like flake8 and mypy
[tox]
envlist =
3.{10,11,12,13}
format
lint
isolated_build = true
min_version = 4
requires =
tox>=4.22
tox-uv
[testenv]
runner = uv-venv-lock-runner
pass_env =
TARGET_POSTGRES_*
dependency_groups =
testing
commands =
pytest
[testenv:format]
# Attempt to auto-resolve lint errors before they are raised.
# To execute, run `tox -e format`
dependency_groups =
lint
commands =
ruff check target_postgres/
ruff format target_postgres/
[testenv:lint]
# Raise an error if lint and style standards are not met.
# To execute, run `tox -e lint`
dependency_groups =
lint
typing
commands =
ruff check --diff target_postgres/
ruff format --check target_postgres/
mypy .