Skip to content

Commit

Permalink
chore: fix pylint 3.8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pkucmus committed Jan 30, 2025
1 parent 09bbd27 commit 672d769
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,25 @@ jobs:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install -e .[asgi-file-uploads,tracing,telemetry,test,dev]
- name: Install Hatch
uses: pypa/hatch@install
- name: Pytest
run: |
pytest --cov=ariadne --cov=tests
run: hatch test -c -py ${{ matrix.python-version }}
- uses: codecov/codecov-action@v3
- name: Linters
run: |
pylint ariadne tests
mypy ariadne tests_mypy --ignore-missing-imports --check-untyped-defs
black --check .
- name: Pylint
run: hatch run pylint --py-version=3.8 ariadne tests
- name: mypy
run: hatch run mypy ariadne tests_mypy --ignore-missing-imports --check-untyped-defs
- name: black
run: hatch run black -t py38 --check .
- name: Benchmark
run: |
pytest benchmark --benchmark-storage=file://benchmark/results --benchmark-compare
hatch run pytest benchmark --benchmark-storage=file://benchmark/results --benchmark-compare
integration:

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ features = ["dev", "test"]
[tool.hatch.envs.default.scripts]
test = "coverage run -m pytest"
check = [
"pylint ariadne tests",
"pylint --py-version=3.8 ariadne tests",
"mypy ariadne tests_mypy --ignore-missing-imports --check-untyped-defs",
"black --check .",
"hatch test -a -p",
Expand All @@ -89,7 +89,7 @@ python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.black]
line-length = 88
target-version = ['py36', 'py37', 'py38']
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
/(
Expand Down

0 comments on commit 672d769

Please sign in to comment.