-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
105 lines (93 loc) · 2.19 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
98
99
100
101
102
103
104
105
[build-system]
requires = ["poetry>=1.0.0"]
build-backend = "poetry.masonry.api"
[tool.poetry]
# Description
name = "noos-inv"
version = "0.2.1"
description = "Shared workflows across CI/CD pipelines"
# Credentials
license = "MIT"
authors = ["Noos Energy <[email protected]>"]
homepage = "https://github.com/noosenergy/noos-invoke"
# Package data
readme = "README.md"
packages = [
{ include = "noos_inv", from = "src" },
]
# Distribution
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.12",
"Typing :: Typed",
]
[tool.poetry.scripts]
noosinv = "noos_inv:main.run"
[tool.poetry.dependencies]
python = "^3.12"
invoke = "*"
[tool.poetry.dev-dependencies]
# Linter
ruff = "*"
mypy = "*"
# Testing
pytest = "*"
pytest-cov = "*"
pytest-mock = "*"
# Debugging
ipdb = "*"
ipython = "*"
[tool.ruff]
line-length = 99
src = ["src"]
# Required if `requires-python` project meta missing
target-version = "py312"
[tool.ruff.lint]
ignore = [
# Pydocstyle
"D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107",
# Incompatible rules with D211 & D212
"D203", "D213",
]
select = [
# Flake8
"F", "C90",
# Pycodestyle
"E", "W",
# Pydocstyle
"D",
# Isort
"I",
]
[tool.ruff.lint.isort]
lines-after-imports = 2
default-section = "third-party"
known-first-party = ["noos_inv", "tests"]
section-order = ["standard-library", "third-party", "first-party", "local-folder"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.mccabe]
# Nearly replacement for flake8 max-complexity
max-complexity = 10
[tool.mypy]
install_types = true
non_interactive = true
incremental = true
warn_unused_configs = false
warn_unused_ignores = true
check_untyped_defs = true
warn_redundant_casts = true
ignore_missing_imports = true
[tool.pytest.ini_options]
python_files = "test_*.py"
python_classes = "Test"
python_functions = "test_*"
filterwarnings = "error::RuntimeWarning"
pythonpath = ["src"]
junit_family = "xunit2"
addopts = "--junitxml=.pytest_results/junit.xml"
[tool.coverage.run]
source = "noos_inv/*"