-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
94 lines (85 loc) · 1.59 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "fh-fablib"
dynamic = ["version"]
description = "fh-fablib"
readme = "README.rst"
license = {text = "BSD-3-Clause"}
requires-python = ">=3.9"
authors = [
{ name = "Matthias Kestenholz", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: BSD License",
]
dependencies = [
"fabric>=3",
"speckenv>=6.2",
]
[project.scripts]
fl = "fabric.main:program.run"
[project.urls]
Homepage = "https://github.com/feinheit/fh-fablib/"
[tool.hatch.version]
path = "fh_fablib/__init__.py"
[tool.ruff]
fix = true
show-fixes = true
target-version = "py39"
[tool.ruff.lint]
extend-select = [
# pyflakes, pycodestyle
"F", "E", "W",
# mmcabe
"C90",
# isort
"I",
# pep8-naming
"N",
# pyupgrade
"UP",
# flake8-2020
"YTT",
# flake8-boolean-trap
"FBT",
# flake8-bugbear
"B",
# flake8-comprehensions
"C4",
# flake8-django
"DJ",
# flake8-pie
"PIE",
# flake8-simplify
"SIM",
# flake8-gettext
"INT",
# pygrep-hooks
"PGH",
# pylint
"PL",
# unused noqa
"RUF100",
]
extend-ignore = [
# Allow zip() without strict=
"B905",
# No line length errors
"E501",
# Fabric/invoke do not support keyword-only arguments unfortunately
"FBT002",
]
[tool.ruff.lint.isort]
combine-as-imports = true
lines-after-imports = 2
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.per-file-ignores]
"*/migrat*/*" = [
# Allow using PascalCase model names in migrations
"N806",
# Ignore the fact that migration files are invalid module names
"N999",
]