-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (45 loc) · 1.7 KB
/
Copy pathpyproject.toml
File metadata and controls
53 lines (45 loc) · 1.7 KB
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
# zark — project metadata and tool configuration.
#
# Single source of truth for tool settings. Tools that don't yet read
# pyproject.toml (notably pylint, which uses .pylintrc) keep their own file.
# ── Dev dependencies (PEP 735) ───────────────────────────────────────────
#
# Used by tox (and downstream CI) via `dependency_groups = dev` to install
# the static-analysis stack into the lint environment. zark itself is a
# portable script with no runtime dependencies; this group is purely for
# development tooling.
#
# Versions here are duplicated with `.pre-commit-config.yaml` because pre-
# commit installs hook tools by git rev (a different mechanism) and cannot
# read PEP 735 groups. When bumping a version below, also bump it in the
# corresponding hook in .pre-commit-config.yaml.
[dependency-groups]
dev = [
"mypy==1.19.1",
"pylint==3.3.9",
"ruff==0.15.12",
]
[tool.pyright]
include = ["lib", "commands", "tests"]
extraPaths = ["."]
pythonVersion = "3.12" # Pyright's "pythonVersion" is the minimum supported version, not the target version.
[tool.mypy]
python_version = "3.12"
files = ["lib", "commands", "tests", "zark"]
[tool.black]
line-length = 100
target-version = ["py312"]
include = '\.pyi?$'
[tool.isort]
profile = "black"
line_length = 100
known_first_party = ["lib", "commands", "tests"]
[tool.flake8]
# Requires the flake8-pyproject plugin (added to .pre-commit-config.yaml).
max-line-length = 100
select = ["B", "C", "E", "F", "W", "T4", "B9"]
ignore = ["E203", "W503"]
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "W"]