-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
89 lines (79 loc) · 2.4 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
[build-system]
requires = ["setuptools >=61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pytekukko"
version = "0.16.0"
description = "Jätekukko Omakukko API client"
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "Ville Skyttä", email = "[email protected]" }]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Typing :: Typed",
]
dependencies = ["aiohttp~=3.4"]
[project.optional-dependencies]
examples = ["python-dotenv>=0.10,<2", "google-api-python-client~=2.0,>=2.0.2", "icalendar~=5.0"]
[project.scripts]
pytekukko-collection-schedules = "pytekukko.examples.print_collection_schedules:main [examples]"
pytekukko-invoice-headers = "pytekukko.examples.print_invoice_headers:main [examples]"
pytekukko-next-collections = "pytekukko.examples.print_next_collections:main [examples]"
pytekukko-update-google-calendar = "pytekukko.examples.update_google_calendar:main [examples]"
[project.urls]
Homepage = "https://github.com/scop/pytekukko"
Changelog = "https://github.com/scop/pytekukko/blob/main/CHANGELOG.md"
[tool.ruff]
fix = true
src = ["src", "tests"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # Maybe sometime
"D203", # Ping/pong with D211
"D213", # Ping/pong with D212
"TCH003", # Maybe sometime
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
# (keep order of ignores here same as ^there for maintainability)
"W191",
"E111",
"E114",
"E117",
"D206",
"D300",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
]
unfixable = ["T20"]
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = ["S101"]
[tool.mypy]
python_version = "3.10"
mypy_path = "$MYPY_CONFIG_FILE_DIR/src"
enable_error_code = "ignore-without-code,redundant-self,truthy-iterable"
strict = true
warn_unreachable = true
exclude = "^build/"
[[tool.mypy.overrides]]
module = "icalendar.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = [
"error",
# https://github.com/pytest-dev/pytest/issues/10977
"default:(ast\\.(NameConstant|Str)|Attribute s) is deprecated:DeprecationWarning:_pytest.assertion.rewrite",
]