-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathpyproject.toml
96 lines (81 loc) · 2.67 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[project]
name = "pandas-vet"
description = "A flake8 plugin to lint pandas in an opinionated way."
authors = [{ name = "Jacob Deppen", email = "deppen.8@gmail.com" }]
readme = "README.md"
requires-python = ">=3.8"
license = { text = "MIT" }
keywords = ["flake8", "pandas", "pandas-vet", "linter", "qa"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
# Dependencies for the package itself.
dependencies = ["flake8>=6.0.0", "attrs>=19.2.0"]
dynamic = ["version"]
[project.optional-dependencies]
docs = ["sphinx", "jupyter-book"]
[project.entry-points."flake8.extension"]
PD = "pandas_vet:VetPlugin"
[project.urls]
Homepage = "https://github.com/deppen8/pandas-vet"
Issues = "https://github.com/deppen8/pandas-vet/issues"
# Documentation = ""
[tool.hatch.version]
source = "regex_commit"
path = "src/pandas_vet/__about__.py"
tag_sign = false
[tool.hatch.build.targets.sdist]
exclude = ["/.github", "/docs", "/tests"]
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
[tool.hatch.envs.default]
dependencies = []
[tool.hatch.envs.dev]
# Extra dependencies for developing the package.
extra-dependencies = [
"pytest",
"pytest-cov",
"isort>=5",
"black",
"flake8",
"jupyter-book",
]
[tool.hatch.envs.dev.scripts]
check = ["flake8 .", "black --check --diff .", "isort --check-only --diff ."]
format = ["isort .", "black .", "flake8 ."]
_pytest = "pytest {args}"
tests = ["mkdir -p results", "_pytest", "format"]
docs = "jupyter-book build docs/"
[[tool.hatch.envs.dev.matrix]]
python = ["3.8", "3.9", "3.10", "3.11"]
[tool.coverage.run]
branch = true
parallel = true
include = ["*/src/pandas_vet/**/*.py"]
omit = ["*/src/pandas_vet/__about__.py", "tests/*"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.isort]
profile = "black"
skip = [".hatch"]
[tool.pytest.ini_options]
addopts = "-v --cov --cov-report xml:results/coverage.xml --cov-report html:results/cov_html --cov-report term-missing --junitxml=results/test.xml"
junit_family = "xunit1"
norecursedirs = "data"