Skip to content

Commit

Permalink
Merge pull request #210 from asottile/all-repos_autofix_all-repos-manual
Browse files Browse the repository at this point in the history
py39+
  • Loading branch information
asottile authored Oct 11, 2024
2 parents 9179a2a + 31ff765 commit 3b015cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:

jobs:
main-windows:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0
with:
env: '["py38"]'
env: '["py39"]'
os: windows-latest
main-linux:
uses: asottile/workflows/.github/workflows/tox.yml@v1.5.0
uses: asottile/workflows/.github/workflows/tox.yml@v1.7.0
with:
env: '["py38", "py39"]'
env: '["py39", "py310"]'
os: ubuntu-latest
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ repos:
rev: v3.13.0
hooks:
- id: reorder-python-imports
args: [--py38-plus, --add-import, 'from __future__ import annotations']
args: [--py39-plus, --add-import, 'from __future__ import annotations']
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
Expand All @@ -26,7 +26,7 @@ repos:
rev: v3.17.0
hooks:
- id: pyupgrade
args: [--py38-plus]
args: [--py39-plus]
- repo: https://github.com/hhatto/autopep8
rev: v2.3.1
hooks:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ py_modules = yesqa
install_requires =
flake8>=3.9
tokenize-rt>=2.1
python_requires = >=3.8
python_requires = >=3.9

[options.entry_points]
console_scripts =
Expand Down
7 changes: 3 additions & 4 deletions yesqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@
import subprocess
import sys
import tempfile
from typing import List
from typing import Match
from typing import Sequence
from collections.abc import Sequence
from re import Match

import tokenize_rt

Tokens = List[tokenize_rt.Token]
Tokens = list[tokenize_rt.Token]

NOQA_FILE_RE = re.compile(r'^# flake8[:=]\s*noqa', re.I)
_code = '[a-z]{1,3}[0-9]+'
Expand Down

0 comments on commit 3b015cd

Please sign in to comment.