File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ concurrency:
33 group : ${{ github.workflow }}-${{ github.event.number }}-${{ github.event.ref }}
44 cancel-in-progress : true
55on : # yamllint disable-line rule:truthy
6+ pull_request :
67 schedule :
78 - cron : ' 0 3 * * *'
89 workflow_dispatch :
3132 - name : Generate stub files
3233 run : python tools/stubgen.py
3334 - name : Push stub files
35+ if : github.event_name == 'push'
3436 run : |
3537 git config --global user.name 'github-actions[bot]'
3638 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
Original file line number Diff line number Diff line change @@ -144,13 +144,10 @@ minversion = '6.0'
144144
145145[tool .ruff ]
146146extend-exclude = [
147- ' *.pyi' ,
148147 ' doc' ,
149148 ' setup.py' ,
150149]
151- ignore = [
152- " UP007" , # 'Use `X | Y` for type annotations', requires python 3.10
153- ]
150+ ignore = []
154151line-length = 88
155152select = [" E" , " F" , " UP" , " W" ]
156153target-version = ' py39'
@@ -159,6 +156,10 @@ target-version = 'py39'
159156docstring-code-format = true
160157
161158[tool .ruff .per-file-ignores ]
159+ '*' = [
160+ " UP007" , # 'Use `X | Y` for type annotations', requires python 3.10
161+ ]
162+ '*.pyi' = [' E501' ]
162163'__init__.py' = [' F401' ]
163164
164165[tool .setuptools ]
You can’t perform that action at this time.
0 commit comments