-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
82 lines (68 loc) · 2.18 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "dot-dropbox-ignore"
authors = [{ name = "Ian Currie", email = "[email protected]" }]
readme = "README.md"
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Monitoring",
]
keywords = ["dropbox", "ignore"]
requires-python = ">=3.9"
dependencies = ["igittigitt"]
[tool.setuptools.dynamic]
version = { attr = "dropboxignore.__version__" }
[project.scripts]
dbignore = "dropboxignore.cli:cli"
[project.urls]
"Source Code" = "https://github.com/iansedano/dot-dropbox-ignore"
[project.optional-dependencies]
dev = ["black", "ruff", "interrogate", "isort", "pip-tools"]
test = ["black", "ruff", "interrogate", "pytest", "pytest-cov", "tox"]
[tool.isort]
profile = "black"
import_heading_stdlib = "Standard library imports"
import_heading_thirdparty = "Third party imports"
import_heading_firstparty = "DotDropboxIgnore imports"
[tool.interrogate]
fail-under = 60
exclude = ["dist", "tests", "build"]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist = py, style
[testenv]
deps =
pytest
pytest-cov
commands =
{envpython} -m pytest --cov=dropboxignore --cov-fail-under=20 --cov-report=term-missing
[testenv:style]
skip_install = true
deps =
black
ruff
interrogate
isort
commands =
{envpython} -m black --check --quiet dropboxignore/ tests/
{envpython} -m ruff check dropboxignore/ tests/
{envpython} -m interrogate --quiet --config=pyproject.toml
{envpython} -m isort --check dropboxignore/ tests/
"""
[tool.ruff]
line-length = 88 # Same as Black
exclude = [".git", ".ruff_cache", ".tox", "venv", "dist", "build"]