-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
73 lines (61 loc) · 1.83 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
[build-system]
requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "hooks"
version = "0.3.8"
description = "Custom pre-commit hooks for use within our projects"
authors = [ "Tom Collingwood <[email protected]>","Rob Firth <[email protected]>"]
license = "MIT"
repository = "https://github.com/stfc/pre-commit-hooks"
keywords = [ "pre-commit", "hooks",]
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
warn_redundant_casts = true
[[tool.mypy.overrides]]
module = [ "regex", "pylint", "pylint.reporters", "pylint.lint", "requirements", "toml",]
ignore_missing_imports = true
[tool.isort]
profile = "black"
skip = [ "build_seq.py", "conf.py",]
float_to_top = true
[tool.tox]
legacy_tox_ini = "[tox]\nskipsdist = true\nenvlist = py39\n\n[testenv]\nwhitelist_externals = poetry\npassenv = RUNNER PLATFORM_ENVVAR\ncommands =\n poetry install -v\n poetry run python -m unittest\n"
[tool.poetry.scripts]
check-missing-requirements = "hooks.check_missing_requirements:main"
check-mypy-import-errors = "hooks.check_mypy_import_errors:main"
check-pylint-import-errors = "hooks.check_pylint_import_errors:main"
[tool.poetry.dependencies]
python = ">=3.8, <4.0"
regex = "^2022.1.18"
requirements-parser = "^0.11.0"
toml = "^0.10.2"
mypy = "^1.1.1"
mypy-extensions = "^1.0.0"
ruff = "^0.2.1"
pylint = "^3.1.0"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
isort = "^5.10.1"
pre-commit = "^2.15.0"
tox = "^3.24.4"
jupyterlab-code-formatter = "^1.4.10"
Sphinx = "^4.2.0"
sphinx-rtd-theme = "^1.0.0"
[tool.ruff]
line-length = 88
# Note: Ruff supports a top-level `src` option in lieu of isort's `src_paths` setting.
src = ["hooks"]
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I001"
]