Skip to content

Commit c9b4a94

Browse files
Merge pull request #111 from pythoninthegrass/dev
chore: General maintenance
2 parents bc05636 + 43ba554 commit c9b4a94

File tree

17 files changed

+1851
-834
lines changed

17 files changed

+1851
-834
lines changed

.gitignore

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
# ETC
2-
*.sqlite
2+
.bash_history
33
*.db
4-
redis*
5-
!redis.conf.example
6-
*.pem
74
*.key
8-
raw/
9-
!**/.gitkeep
10-
!groups.csv
11-
!channels.csv
5+
*.pem
6+
*.sample
7+
*.sample
8+
*.sqlite
9+
*cache
10+
*report.json
1211
gen_token.py
1312
gitleaks_report*.json
14-
.bash_history
13+
raw/
14+
redis*
1515
tempCodeRunnerFile*
16-
*report.json
17-
*cache
16+
17+
# INCLUDE
18+
!*.gitkeep
19+
!channels.csv
20+
!groups.csv
21+
!*.example
1822

1923
# Byte-compiled / optimized / DLL files
2024
__pycache__/

.tool-versions

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
python 3.11.6
2-
poetry 1.7.1
1+
python 3.11.9
2+
poetry 1.8.3
33
nodejs 21.4.0
4+
ruby 3.2.2

.vscode/launch.json

Lines changed: 34 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,38 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55

6-
// pytest: https://stackoverflow.com/questions/70259564/how-to-debug-the-current-python-test-file-with-pytest-in-vs-code
6+
// pytest: https://stackoverflow.com/questions/70259564/how-to-debug-the-current-python-test-file-with-pytest-in-vs-code
77

8-
"version": "0.2.0",
9-
"configurations": [
10-
{
11-
"name": "Python: Current File",
12-
"type": "python",
13-
"request": "launch",
14-
"program": "${file}",
15-
"console": "integratedTerminal",
16-
"cwd": "${fileDirname}",
17-
// "args": ["-i", "response.xml", "-o", "response.csv"],
18-
// "args": ["-d", "/Volumes/Data"],
19-
// "args": ["-f", "menubar.dmg"],
20-
// "args": ["-h"],
21-
// "env": {
22-
// "CREDS": "",
23-
// }
24-
},
25-
{
26-
"name": "Python: Django",
27-
"type": "python",
28-
"request": "launch",
29-
"program": "${workspaceFolder}/manage.py",
30-
"console": "integratedTerminal",
31-
"args": ["runserver"],
32-
"django": true,
33-
"justMyCode": true
34-
},
35-
{
36-
"name": "Python: Flask",
37-
"type": "python",
38-
"request": "launch",
39-
"program": "${workspaceFolder}/.venv/bin/flask",
40-
"console": "integratedTerminal",
41-
"args": [
42-
"run",
43-
"--host",
44-
"0.0.0.0",
45-
"--port",
46-
"8000"
47-
],
48-
"justMyCode": true
49-
},
50-
{
51-
"name": "Python: Flet",
52-
"type": "python",
53-
"request": "launch",
54-
"program": "${workspaceFolder}/.venv/bin/flet",
55-
"console": "integratedTerminal",
56-
"args": [
57-
"run",
58-
"main.py",
59-
"-d"
60-
],
61-
"env": {
62-
"PYDEVD_DISABLE_FILE_VALIDATION": "1",
63-
},
64-
"justMyCode": true
65-
},
66-
{
67-
"name": "Python: Debug Tests",
68-
"type": "python",
69-
"request": "launch",
70-
"module": "pytest",
71-
"args": [
72-
"${file}"
73-
],
74-
"console": "integratedTerminal"
75-
},
76-
{
77-
"name": "Node: Current File",
78-
"type": "node",
79-
"request": "launch",
80-
"program": "${file}",
81-
"console": "integratedTerminal",
82-
"skipFiles": [
83-
"<node_internals>/**"
84-
],
85-
// "runtimeExecutable": "${env:HOME}/.n/bin/node"
86-
}
87-
],
88-
"ansible.python.interpreterPath": "${workspaceFolder}/.venv/bin/python"
8+
"version": "0.2.0",
9+
"configurations": [
10+
{
11+
"name": "Python: Current File",
12+
"type": "debugpy",
13+
"request": "launch",
14+
"program": "${file}",
15+
"console": "integratedTerminal",
16+
"cwd": "${fileDirname}",
17+
"pythonArgs": [
18+
"-Xfrozen_modules=off"
19+
],
20+
"env": {
21+
"PYDEVD_DISABLE_FILE_VALIDATION": "1"
22+
}
23+
},
24+
{
25+
"name": "Python: Debug Tests",
26+
"type": "debugpy",
27+
"request": "launch",
28+
"module": "pytest",
29+
"args": [
30+
"${file}"
31+
],
32+
"console": "integratedTerminal",
33+
"env": {
34+
"PWDEBUG": "1"
35+
}
36+
},
37+
]
8938
}

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"python.defaultInterpreterPath": "${workspaceFolder}/app/.venv/bin/python",
33
"python.terminal.activateEnvInCurrentTerminal": true,
4+
"python.testing.pytestArgs": [
5+
"./tests/"
6+
//"--headed"
7+
]
48
}
File renamed without changes.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Use Meetup Pro API to send Slack messages before events occur.
2121

2222
## Minimum Requirements
23-
* [Python 3.11.6](https://www.python.org/downloads/)
23+
* [Python 3.11+](https://www.python.org/downloads/)
2424
* [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
2525
* [Create a Meetup API key](https://secure.meetup.com/meetup_api/key/)
2626
* Slack

app/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python3
22

33
import arrow
4-
# import os
54
import pandas as pd
65
import sys
76
import time

app/slackbot.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import arrow
44
import json
5-
# import os
65
import pandas as pd
7-
# import sys
86
import time
97
from decouple import config
108
from icecream import ic

app/tests/test_meetup_query_copilot.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

devbox.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
{
22
"packages": [
3-
3+
44
"python311Packages.pip@latest",
55
"poetry@latest",
6-
"docker@latest",
7-
"gh@latest",
8-
"git@latest",
96
"gnumake@latest",
107
"go-task@latest",
118
"heroku@latest",
129
13-
"openssl@latest",
14-
"tilt@latest"
10+
"tilt@latest",
11+
"uv@latest"
1512
],
1613
"env": {
1714
"VENV_DIR": ".venv"
1815
},
1916
"shell": {
2017
"init_hook": [
2118
". $VENV_DIR/bin/activate",
22-
"poetry install --no-root",
19+
"uv pip install -r requirements.txt",
2320
"cd ./app"
2421
],
2522
"scripts": {
23+
"export-reqs": "uv pip freeze | uv pip compile - -o requirements.txt",
24+
"install": "uv pip install -r requirements.txt",
2625
"start": "./startup.sh",
27-
"test": "poetry run pytest"
26+
"test": "poetry run pytest",
27+
"venv": "uv venv ${VENV_DIR} --allow-existing"
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)