-
Notifications
You must be signed in to change notification settings - Fork 18
/
pyproject.toml
97 lines (82 loc) · 2.81 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
97
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "pyosmeta"
dynamic = ["version"]
description = "Tools that update the pyOpenSci contributor and review metadata that is posted on our website"
authors = [{ name = "Leah Wasser", email = "[email protected]" }]
maintainers = [
{ name = "pyOpenSci", email = "[email protected]" }, # Optional
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
# Pick your license - we suggest MIT, BSD3 or Apache if you are corporate
"License :: OSI Approved :: MIT License",
# Specify the Python versions ensuring that you indicate you support Python 3.
# this is only for pypi and other metadata associated with your package - for your users to see
"Programming Language :: Python :: 3 :: Only", # BE sure to specify that you use python 3.x
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"pydantic>=2.0",
"python-dotenv",
"requests",
"ruamel-yaml>=0.17.21",
]
# This is metadata that pip reads to understand what Python versions your package supports
requires-python = ">=3.10"
readme = "README.md"
license = { text = "MIT" }
[project.optional-dependencies]
dev = [
"black",
"flake8",
"pre-commit",
"pytest",
"pytest-cov",
"pytest-mock"
]
[project.urls]
"Homepage" = "https://github.com/pyopensci/pyosmeta/"
"Bug Reports" = "https://github.com/pyopensci/pyosmeta/issues"
"Source" = "https://github.com/pyopensci/pyosmeta/issues"
# These are entry points that allow you to surface specific functionality
# for a user to run directly from the package.
[project.scripts]
parse-history = "pyosmeta.cli.parse_history:main"
update-contributors = "pyosmeta.cli.update_contributors:main"
update-reviews = "pyosmeta.cli.process_reviews:main"
update-review-teams = "pyosmeta.cli.update_review_teams:main"
[tool.coverage.run]
branch = true
include = ["src/pyosmeta/*"]
# Don't run coverage on tests directory or version file created by scm
omit = ["tests/*", "src/pyosmeta/_version.py"]
### Hatch config ###
[tool.hatch]
version.source = "vcs"
build.hooks.vcs.version-file = "src/pyosmeta/_version.py"
[tool.hatch.envs.test]
dependencies = ["pytest", "pytest-cov", "coverage[toml]", "pytest-mock"]
[tool.hatch.envs.test.scripts]
run-coverage = "pytest --cov-config=pyproject.toml --cov=pyosmeta --cov=tests/*"
run-no-cov = "run-coverage --no-cov"
run-report = "run-coverage --cov-report=xml:coverage.xml"
### Tool configuration ###
[tool.ruff]
line-length = 79
[tool.ruff.lint]
ignore = ["E501"]
select = [
"C90", # mccabe
"E", # pycodestyle (E)
"F", # pyflakes
"I", # isort
"W", # pycodestyle (W)
]
[tool.ruff.lint.mccabe]
max-complexity = 18