Skip to content

Commit

Permalink
Update Python 3.12 (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
devinmatte authored Apr 7, 2024
1 parent 6e27567 commit 79bc639
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 70 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/dry_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
python-version: ['3.12']
env:
ACCESS_KEY: ${{ secrets.ACCESS_KEY }}
ACCESS_SECRET: ${{ secrets.ACCESS_SECRET }}
Expand All @@ -22,9 +22,9 @@ jobs:
SLOW_ZONE_BOT_SLACK_WEBHOOK_URL: ${{ secrets.SLOW_ZONE_BOT_SLACK_WEBHOOK_URL }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run MBTA Slow Zone Bot in Dry Run mode
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
python-version: ['3.12']
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Lint and check formatting of backend code
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
python-version: ['3.12']
env:
ACCESS_KEY: ${{ secrets.ACCESS_KEY }}
ACCESS_SECRET: ${{ secrets.ACCESS_SECRET }}
Expand All @@ -23,9 +23,9 @@ jobs:
SLOW_ZONE_BOT_SLACK_WEBHOOK_URL: ${{ secrets.SLOW_ZONE_BOT_SLACK_WEBHOOK_URL }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Run MBTA Slow Zone Bot in Debug mode
Expand Down
113 changes: 57 additions & 56 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ authors = ["TransitMatters Labs Team"]
license = "MIT"

[tool.poetry.dependencies]
python = "~3.11, <3.12"
python = "~3.12"
tweepy = "^4.14.0"
"Mastodon.py" = "^1.8.1"
argparse = "^1.4.0"

[tool.poetry.dev-dependencies]
pip = ">=23.1"
flake8 = "^6.1.0"
black = "^23.12.0"
flake8 = "^7.0.0"
black = "^24.2.0"

[tool.black]
line-length = 120
target-version = ['py311']
target-version = ['py312']

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

0 comments on commit 79bc639

Please sign in to comment.