-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
143 lines (124 loc) · 3.33 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.badabump]
version_type = "semver"
[tool.black]
line_length = 79
target_version = ["py37"]
[tool.coverage.run]
branch = true
source = ["pre_commit_run_hook_entry"]
[tool.coverage.paths]
source = ["src/"]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"@overload",
]
omit = [
"src/*/__main__.py",
"src/*/annotations.py",
]
fail_under = 95
skip_covered = true
show_missing = true
[tool.isort]
profile = "attrs"
combine_as_imports = true
force_alphabetical_sort_within_sections = true
lines_between_types = 0
src_paths = ["src/"]
virtual_env = ".venv/"
[tool.mypy]
allow_untyped_globals = true
check_untyped_defs = true
disallow_any_decorated = true
disallow_any_generics = true
disallow_incomplete_defs = true
disallow_untyped_calls = true
disallow_untyped_decorators = true
disallow_untyped_defs = true
exclude = ["docs/", "migrations/", "tests/"]
follow_imports = "normal"
follow_imports_for_stubs = true
ignore_missing_imports = false
mypy_path = "src/"
namespace_packages = true
no_implicit_optional = true
python_executable = ".venv/bin/python3"
show_column_numbers = true
show_error_codes = true
warn_redundant_casts = true
warn_return_any = true
warn_unused_ignores = true
# Local mypy config
[[tool.mypy.overrides]]
module = [
"pre_commit.*",
]
ignore_missing_imports = true
[tool.poetry]
name = "pre-commit-run-hook-entry"
version = "1.0.0b1"
description = "Run pre-commit hook entry. Allow to run pre-commit hooks for text editor formatting / linting needs"
authors = ["Igor Davydenko <iam@igordavydenko.com>"]
license = "BSD-3-Clause"
readme = "README.rst"
homepage = "https://igordavydenko.com/projects/#pre-commit-run-hook-entry"
repository = "https://github.com/playpauseandstop/pre-commit-run-hook-entry"
keywords = ["pre-commit", "pre-commit hook", "vscode", "sublime-text3"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Plugins",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Utilities",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "^3.7"
pre-commit = ">=2.19.0,<4.0"
[tool.poetry.group.dev.dependencies]
mypy = "^1.0.1"
[tool.poetry.group.test.dependencies]
coverage = {extras = ["toml"], version = "^6.5.0"}
coveralls = "^3.3.1"
pytest = "^7.2.1"
pytest-cov = "^4.0.0"
[tool.poetry.scripts]
pre-commit-run-black-entry = "pre_commit_run_hook_entry.cli:main_black"
pre-commit-run-hook-entry = "pre_commit_run_hook_entry.cli:main"
pre-commit-which-hook-entry = "pre_commit_run_hook_entry.cli:main_which"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/playpauseandstop/pre-commit-run-hook-entry/issues"
[tool.pytest.ini_options]
minversion = "7.2.1"
testpaths = ["tests/"]
addopts = "--cov --no-cov-on-fail"
log_level = "info"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py311,py311-minimum-requirements
skipsdist = True
[gh-actions]
python =
3.11: py311
[testenv]
allowlist_externals =
poetry
passenv =
PYTEST_ADDOPTS
skip_install = True
commands_pre =
poetry install --only main,test
commands =
python3 -m pytest
[testenv:py311-minimum-requirements]
commands_pre =
poetry install --only main,test
poetry run python3 -m pip install pre-commit==2.19.0
"""