-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
130 lines (118 loc) · 4.28 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
[build-system]
requires = ["poetry-core>=1.2.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "zwog"
version = "1.0.0"
description = "Zwift workout generator"
authors = [
"Tarmo Äijö <tarmo.aijo@gmail.com>",
]
readme = "README.md"
license = "BSD-3-Clause"
homepage = "https://github.com/tare/zwog"
repository = "https://github.com/tare/zwog"
keywords = [
"zwift",
"cycling",
"workout"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Other Audience",
"Topic :: Games/Entertainment",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
]
packages = [
{ include = "zwog", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.8"
lark = "^1.1.2"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4"
tox = "^4.11"
ruff = "^0.1"
mypy = "^1.6"
pre-commit = "^3.5"
[tool.poetry.scripts]
zwog = "zwog.utils:main"
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/tare/zwog/issues"
[tool.ruff]
target-version = "py38"
fix = true
fixable = [
"I001", # https://docs.astral.sh/ruff/rules/unsorted-imports/
]
select = [
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
"E4", # https://docs.astral.sh/ruff/rules/#error-e
"E7", # https://docs.astral.sh/ruff/rules/#error-e
"E9", # https://docs.astral.sh/ruff/rules/#error-e
"W", # https://docs.astral.sh/ruff/rules/#warning-w
"C90", # https://docs.astral.sh/ruff/rules/#mccabe-c90
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"N", # https://docs.astral.sh/ruff/rules/#pep8-naming-n
"D", # https://docs.astral.sh/ruff/rules/#pydocstyle-d
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
"ANN", # https://docs.astral.sh/ruff/rules/#flake8-annotations-ann
"A", # https://docs.astral.sh/ruff/rules/#flake8-builtins-a
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"C4", # https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"EM101", # https://docs.astral.sh/ruff/rules/#flake8-errmsg-em
"EXE", # https://docs.astral.sh/ruff/rules/#flake8-executable-exe
"ISC", # https://docs.astral.sh/ruff/rules/#flake8-implicit-str-concat-isc
"G", # https://docs.astral.sh/ruff/rules/#flake8-logging-format-g
"PIE", # https://docs.astral.sh/ruff/rules/#flake8-pie-pie
"PT", # https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
"Q", # https://docs.astral.sh/ruff/rules/#flake8-quotes-q
"RET", # https://docs.astral.sh/ruff/rules/#flake8-return-ret
"SLF", # https://docs.astral.sh/ruff/rules/#flake8-self-slf
"SIM", # https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
"TID", # https://docs.astral.sh/ruff/rules/#flake8-tidy-imports-tid
"ARG", # https://docs.astral.sh/ruff/rules/#flake8-unused-arguments-arg
"PTH", # https://docs.astral.sh/ruff/rules/#flake8-use-pathlib-pth
"TD", # https://docs.astral.sh/ruff/rules/#flake8-todos-td
"ERA", # https://docs.astral.sh/ruff/rules/#eradicate-era
"PGH", # https://docs.astral.sh/ruff/rules/#pygrep-hooks-pgh
"PL", # https://docs.astral.sh/ruff/rules/#pylint-pl
"TRY", # https://docs.astral.sh/ruff/rules/#tryceratops-try
"NPY", # https://docs.astral.sh/ruff/rules/#numpy-specific-rules-npy
"PERF", # https://docs.astral.sh/ruff/rules/#perflint-perf
"FURB", # https://docs.astral.sh/ruff/rules/#refurb-furb
"LOG", # https://docs.astral.sh/ruff/rules/#flake8-logging-log
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
]
ignore = [
"ANN101", # https://docs.astral.sh/ruff/rules/missing-type-self/
"ISC001", # https://docs.astral.sh/ruff/rules/#flake8-implicit-str-concat-isc
"UP034", # https://docs.astral.sh/ruff/rules/extraneous-parentheses/
]
[tool.ruff.lint]
preview = true
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-v"
testpaths = [
"tests",
]
[tool.mypy]
python_version = "3.8"
follow_imports = "normal"
ignore_missing_imports = true
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_any_generics = true
warn_return_any = true
warn_redundant_casts = true
warn_unreachable = true
warn_unused_ignores = true