|
1 | | -[tool.poetry] |
| 1 | +[project] |
2 | 2 | name = "meetup_bot" |
3 | 3 | version = "1.1.1" |
4 | 4 | description = "Use Meetup Pro API to send Slack messages before events occur." |
5 | | -authors = ["pythoninthegrass <4097471+pythoninthegrass@users.noreply.github.com>"] |
6 | | -readme = "README.md" |
7 | | -license = "Unlicense" |
8 | | - |
9 | | -[tool.poetry.dependencies] |
10 | | -python = ">=3.11,<3.13" |
11 | | -arrow = "^1.3.0" |
12 | | -bcrypt = "4.0.1" |
13 | | -colorama = "^0.4.5" |
14 | | -exceptiongroup = "^1.2.2" |
15 | | -fastapi = ">=0.115.6" |
16 | | -gunicorn = "^23.0.0" |
17 | | -icecream = "^2.1.3" |
18 | | -Jinja2 = "^3.1.5" |
19 | | -jose = "^1.0.0" |
20 | | -numpy = "^2.2.1" |
21 | | -pandas = "^2.2.3" |
22 | | -passlib = {extras = ["bcrypt"], version = "^1.7.4"} |
23 | | -pony = "^0.7.16" |
24 | | -psycopg2-binary = "^2.9.10" |
25 | | -PyJWT = {extras = ["crypto"], version = "^2.10.1"} |
26 | | -python-decouple = "^3.8" |
27 | | -python-jose = {extras = ["cryptography"], version = "^3.3.0"} |
28 | | -python-multipart = "^0.0.9" |
29 | | -requests = "^2.32.3" |
30 | | -requests-cache = "^1.2.1" |
31 | | -slack-sdk = "^3.34.0" |
32 | | -uvicorn = "^0.29.0" |
33 | | -wheel = "^0.43.0" |
34 | | - |
35 | | -[tool.poetry.group.dev.dependencies] |
36 | | -ipython = "^8.31.0" |
37 | | -playwright = "^1.49.1" |
38 | | -poetry-plugin-export = "^1.8.0" |
39 | | -poetry-plugin-up = "^0.7.1" |
40 | | -pyclean = "^3.0.0" |
41 | | -rich = "^13.9.4" |
42 | | -ruff = "^0.6.5" |
43 | | - |
44 | | -[tool.poetry.group.test.dependencies] |
45 | | -pytest = "^8.3.4" |
46 | | -pytest-asyncio = "^0.24.0" |
47 | | -pytest-cov = "^5.0.0" |
48 | | -pytest-datafiles = "^3.0.0" |
49 | | -pytest-xdist = "^3.6.1" |
50 | | -requests-mock = "^1.12.1" |
| 5 | +authors = [ |
| 6 | + {name = "pythoninthegrass", email = "4097471+pythoninthegrass@users.noreply.github.com"}, |
| 7 | +] |
| 8 | +license = {text = "Unlicense"} |
| 9 | +dependencies = [ |
| 10 | + "arrow<2.0.0,>=1.3.0", |
| 11 | + "bcrypt==4.0.1", |
| 12 | + "colorama<1.0.0,>=0.4.5", |
| 13 | + "exceptiongroup<2.0.0,>=1.2.2", |
| 14 | + "fastapi>=0.115.6", |
| 15 | + "gunicorn<24.0.0,>=23.0.0", |
| 16 | + "icecream<3.0.0,>=2.1.3", |
| 17 | + "Jinja2<4.0.0,>=3.1.5", |
| 18 | + "python-jose[cryptography]<4.0.0,>=3.3.0", |
| 19 | + "numpy<3.0.0,>=2.2.1", |
| 20 | + "pandas<3.0.0,>=2.2.3", |
| 21 | + "passlib[bcrypt]<2.0.0,>=1.7.4", |
| 22 | + "pony<1.0.0,>=0.7.16", |
| 23 | + "psycopg2-binary<3.0.0,>=2.9.10", |
| 24 | + "PyJWT[crypto]<3.0.0,>=2.10.1", |
| 25 | + "python-decouple<4.0,>=3.8", |
| 26 | + "python-multipart<1.0.0,>=0.0.9", |
| 27 | + "requests<3.0.0,>=2.32.3", |
| 28 | + "requests-cache<2.0.0,>=1.2.1", |
| 29 | + "slack-sdk<4.0.0,>=3.34.0", |
| 30 | + "uvicorn<1.0.0,>=0.29.0", |
| 31 | + "wheel<1.0.0,>=0.43.0", |
| 32 | +] |
| 33 | +requires-python = ">=3.11,<3.12" |
| 34 | + |
| 35 | +[dependency-groups] |
| 36 | +dev = [ |
| 37 | + "ipython<9.0.0,>=8.31.0", |
| 38 | + "playwright<2.0.0,>=1.49.1", |
| 39 | + "poetry-plugin-export<2.0.0,>=1.8.0", |
| 40 | + "poetry-plugin-up<1.0.0,>=0.7.1", |
| 41 | + "pyclean<4.0.0,>=3.0.0", |
| 42 | + "rich<14.0.0,>=13.9.4", |
| 43 | + "ruff<1.0.0,>=0.6.5", |
| 44 | +] |
| 45 | +test = [ |
| 46 | + "pytest<9.0.0,>=8.3.4", |
| 47 | + "pytest-asyncio<1.0.0,>=0.24.0", |
| 48 | + "pytest-cov<6.0.0,>=5.0.0", |
| 49 | + "pytest-datafiles<4.0.0,>=3.0.0", |
| 50 | + "pytest-xdist<4.0.0,>=3.6.1", |
| 51 | + "requests-mock<2.0.0,>=1.12.1", |
| 52 | +] |
| 53 | + |
| 54 | +[tool.pytest.ini_options] |
| 55 | +testpaths = ["tests"] |
| 56 | +python_files = ["test_*.py"] |
| 57 | +addopts = "-v --cov=app --cov-report=term-missing" |
| 58 | +asyncio_mode = "auto" |
51 | 59 |
|
52 | 60 | [tool.ruff] |
53 | | -# Black (default: 88) |
54 | | -line-length = 130 |
| 61 | +# Fix without reporting on leftover violations |
| 62 | +fix-only = true |
55 | 63 |
|
56 | | -# Assume Python 3.11. |
57 | | -target-version = "py311" |
| 64 | +# Enumerate all fixed violations |
| 65 | +show-fixes = true |
58 | 66 |
|
59 | | -[tool.ruff.lint] |
60 | | -# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default. |
61 | | -select = ["E", "F"] |
62 | | -ignore = [] |
63 | | -# Skip unused variable rules |
64 | | -extend-ignore = ["D203", "E203", "E251", "E266", "E401", "E402", "E501", "F401", "F403", "F405"] |
| 67 | +# Indent width (default: 4) |
| 68 | +indent-width = 4 |
65 | 69 |
|
66 | | -# Allow autofix for all enabled rules (when `--fix`) is provided. |
67 | | -fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"] |
68 | | -unfixable = [] |
| 70 | +# Black (default: 88) |
| 71 | +line-length = 130 |
69 | 72 |
|
70 | 73 | # Exclude a variety of commonly ignored directories. |
71 | 74 | exclude = [ |
@@ -94,16 +97,53 @@ exclude = [ |
94 | 97 | "venv", |
95 | 98 | ] |
96 | 99 |
|
| 100 | +# Assume Python 3.12 |
| 101 | +target-version = "py312" |
| 102 | + |
| 103 | +[tool.ruff.format] |
| 104 | +# Use spaces instead of tabs |
| 105 | +indent-style = "space" |
| 106 | + |
| 107 | +# Use `\n` line endings for all files |
| 108 | +line-ending = "lf" |
| 109 | + |
| 110 | +# Set quote style for strings |
| 111 | +quote-style = "preserve" |
| 112 | + |
| 113 | +[tool.ruff.lint] |
| 114 | +select = [ |
| 115 | + # pycodestyle |
| 116 | + "E", |
| 117 | + # Pyflakes |
| 118 | + "F", |
| 119 | + # pyupgrade |
| 120 | + "UP", |
| 121 | + # flake8-bugbear |
| 122 | + "B", |
| 123 | + # flake8-simplify |
| 124 | + "SIM", |
| 125 | + # isort |
| 126 | + "I", |
| 127 | +] |
| 128 | +ignore = ["D203", "E203", "E251", "E266", "E401", "E402", "E501", "F401", "F403"] |
| 129 | + |
97 | 130 | # Allow unused variables when underscore-prefixed. |
98 | 131 | dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
99 | 132 |
|
100 | | -[tool.pytest.ini_options] |
101 | | -markers = [ |
102 | | - "slow: marks tests as slow (deselect with '-m \"not slow\"')", |
103 | | - "qa: marks tests as qa (deselect with '-m \"not qa\"')", |
104 | | -] |
105 | | -testpaths = ["tests"] |
| 133 | +# Allow autofix for all enabled rules (when `--fix`) is provided. |
| 134 | +fixable = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "INP", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TID", "TRY", "UP", "YTT"] |
| 135 | + |
| 136 | +# unfixable = [] |
| 137 | + |
| 138 | +[tool.ruff.lint.isort] |
| 139 | +combine-as-imports = true |
| 140 | +from-first = false |
| 141 | +no-sections = true |
| 142 | +order-by-type = true |
| 143 | + |
| 144 | +[tool.ruff.lint.flake8-quotes] |
| 145 | +docstring-quotes = "double" |
106 | 146 |
|
107 | | -[build-system] |
108 | | -requires = ["poetry-core"] |
109 | | -build-backend = "poetry.core.masonry.api" |
| 147 | +[tool.ruff.lint.mccabe] |
| 148 | +# Unlike Flake8, default to a complexity level of 10. |
| 149 | +max-complexity = 10 |
0 commit comments