aboutsummaryrefslogtreecommitdiffstats
path: root/pyproject.toml
blob: bf3bcd92cecf9b8168cf21c81f844f02ffb0c611 (plain) (blame)
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
[project]
requires-python = ">=3.7"

[tool.poetry]
name = "wee-slack"
version = "3.0.0"
description = ""
license = "MIT"
authors = ["Trygve Aaberge <trygveaa@gmail.com>"]
readme = "README.md"
repository = "https://github.com/wee-slack/wee-slack"
# packages = [{include = "wee_slack"}]
# packages = [{ include = "." }]

[tool.poetry.dependencies]
python = "^3.7"
websocket-client = ">= 0.37.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.1.3"
pytest-cov = "^4.0.0"
typing-extensions = "^4.4.0"
pyright = "^1.1.323"
ruff = "^0.2.2"

[tool.pylint.main]
ignored-modules = ["weechat"]

[tool.pylint."messages control"]
disable = [
  "dangerous-default-value",        # inconvenient with types
  "inconsistent-return-statements", # no need when using typing
  "invalid-name",
  "missing-class-docstring",
  "missing-function-docstring",
  "missing-module-docstring",
  "no-member",                      # incorrect reports
  "protected-access",               # covered by pyright
  "too-few-public-methods",         # too often bad advice
  "too-many-arguments",
  "too-many-instance-attributes",
]

[tool.pyright]
pythonVersion = "3.7"
strict = ["**"]
reportMissingModuleSource = false
include = ["main.py", "slack", "tests", "typings"]

[tool.ruff]
extend-exclude = ["typings/weechat.pyi", "wee_slack.py", "_pytest"]

[tool.ruff.lint]
extend-select = ["I"]

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