summaryrefslogtreecommitdiff
path: root/pyproject.toml
blob: a0fe2dcfe5787f8f644d5649ab50d53e584cda14 (plain)
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
[tool.poetry]
name = "rss-feeds"
version = "0.2.0"
description = "Build RSS feeds for various web services."
authors = ["André <git@wmgd.de>"]

[tool.poetry.dependencies]
python = ">=3.9,<4"
Flask = "3.0.3"
beautifulsoup4 = "4.12.3"

[tool.poetry.group.dev.dependencies]
ruff = "0.4.2"
mypy = "1.10.0"

[tool.ruff]
line-length = 120

target-version = "py39"  # wgmd.de server version

lint.select = [
  # Pyflakes
  "F",
  # Pycodestyle
  "E",
  "W",
  # flake8-bugbear
  "B",
  "C",
  # flake8-comprehensions
  "C4",
  # flake8-implicit-str-concat
  "ISC",
  # isort
  "I",
  # mccabe (complexity)
  "C901",
  # pyupgrade / python features for selected version
  "UP",
  # flake8-pytest-style
  "PT",
  # flake8-simplify
  "SIM",
  # flake8-print
  "T20",
  # pylint
  "PLC", "PLE", "PLR", "PLW",
  # Ruff specific
  "RUF",
]

lint.ignore = [
  "ISC001", # causes issues with formatter
]

[build-system]
requires = ["poetry-core>=1.7.0"]
build-backend = "poetry.core.masonry.api"