-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
104 lines (85 loc) · 2.11 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
[tool.poetry]
name = "mirageoscience.pre-commit-hooks"
version = "1.1.0"
license = "MIT"
description = ""
repository = "https://github.com/MiraGeoscience/pre-commit-hooks"
authors = ["Mira Geoscience <[email protected]>"]
readme = "README.rst"
include = [
"LICENSE",
"README.rst"
]
packages = [
{ include = "mirageoscience/hooks" }
]
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.group.dev.dependencies]
Pygments = "*"
pylint = "*"
pylint-pytest = "*"
pytest = "*"
pytest-mock = "*"
pytest-cov = "*"
tomli = "*"
[tool.poetry.scripts]
check_copyright = "mirageoscience.hooks.check_copyright:main"
git_message_hook = "mirageoscience.hooks.git_message_hook:main"
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
ignore = [
"B028", # no-explicit-stacklevel for warnings.warn()
"E501", # line-too-long - code is reformatted (do not care about comments and docstring)
"F401", # unsused-import - covered by pycln
]
select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"B006", # Do not use mutable data structures for argument defaults
"B9", # flake8-bugbear opiniated warnings
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"C9", # mccabe
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"RUF", # ruff rules
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.ruff.lint.mccabe]
max-complexity = 18
[tool.ruff.lint.isort]
lines-after-imports = 2
[tool.ruff.format]
# default formatting is just fine
[tool.mypy]
warn_unused_configs = true
ignore_missing_imports = true
scripts_are_modules = true
show_error_context = true
show_column_numbers = true
check_untyped_defs = true
[tool.pytest.ini_options]
#addopts =
[tool.coverage.run]
branch = true
source = ["mirageoscience"]
omit = []
[tool.coverage.report]
exclude_lines = [
"raise NotImplementedError",
"pass",
"if TYPE_CHECKING",
"pragma: no cover"
]
fail_under = 60
[tool.coverage.html]
skip_empty = true
skip_covered = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"