Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ruff from 0.2.2 to 0.3.0 #100

Closed
wants to merge 16 commits into from
21 changes: 12 additions & 9 deletions .github/workflows/reviewing.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
name: Review
name: Reviewing

on:
pull_request:
types:
- opened
workflow_dispatch:
- edited
- reopened

jobs:
assignee:
runs-on: ubuntu-latest
timeout-minutes: 10
if: >-
github.event.pull_request.user.login != ${{ vars.MEX_BOT_USER }} &&
github.event.pull_request.user.login != 'dependabot[bot]'
steps:
- name: Add assignee
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
user_name="${{ github.event.pull_request.user.login }}"
user_type=$(gh api "users/${user_name}" --jq ".type")
echo $user_name is a $user_type
if [[ "$user_type" != "User" ]]; then
user_name="${{ vars.MEX_BOT_USER }}"
echo using $user_name instead
fi
if [[ -z "${{ github.event.pull_request.assignee.login }}" ]]; then
echo assigning to ${{ github.event.pull_request.user.login }}
gh pr edit ${{ github.event.pull_request.html_url }} --add-assignee ${{ github.event.pull_request.user.login }}
else
echo already assigned
echo gh pr edit ${{ github.event.pull_request.html_url }} --add-assignee "${user_name}"
gh pr edit ${{ github.event.pull_request.html_url }} --add-assignee "${user_name}"
fi
40 changes: 20 additions & 20 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pytest = "^8.0.2"
pytest-cov = "^4.1.0"
pytest-random-order = "^1.1.1"
pytest-xdist = "^3.5.0"
ruff = "^0.2.2"
ruff = "^0.3.0"
sphinx = "^7.2.6"
types-ldap3 = "^2.9.13"
types-pytz = "^2024.1.0"
Expand Down
Loading