Skip to content

Commit

Permalink
Prepare for uv (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt authored Mar 28, 2024
1 parent 8c61dd9 commit cf9f241
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.11" ]
python-version: [ "3.12", "3.8" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox
run: pip install tox tox-uv
- name: Check manifest
run: tox -e manifest
- name: Check code quality with flake8
Expand All @@ -34,15 +34,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.7", "3.11" ]
python-version: [ "3.12", "3.8" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox
run: pip install tox tox-uv
- name: Check RST conformity with doc8
run: tox -e doc8
- name: Check docstring coverage
Expand All @@ -55,15 +55,15 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install tox
run: pip install tox tox-uv
- name: Test with pytest
run:
tox -e py
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta:__legacy__"

[tool.black]
line-length = 100
target-version = ["py37", "py38", "py39", "py310", "py311"]
target-version = ["py38", "py39", "py310", "py311", "py312"]

[tool.isort]
profile = "black"
Expand Down
11 changes: 7 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ classifiers =
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3 :: Only
keywords =
caching
Expand Down Expand Up @@ -129,9 +129,12 @@ strictness = full
#########################
[flake8]
ignore =
S403 # pickle
S301 # pickle
W503 # line break before binary operator
# pickle
S403
# pickle
S301
# line break before binary operator
W503
S410
S320
exclude =
Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ description = Run the pre-commit tool
[testenv:flake8]
skip_install = true
deps =
flake8<5.0.0
flake8
flake8-bandit
flake8-colors
flake8-docstrings
Expand All @@ -101,7 +101,9 @@ commands =
description = Run linters.

[testenv:mypy]
deps = mypy
deps =
mypy
types-requests
skip_install = true
commands =
mypy --install-types --non-interactive --ignore-missing-imports src/pystow/
Expand Down Expand Up @@ -195,6 +197,7 @@ skip_install = true
deps =
wheel
build
setuptools
commands =
python -m build --sdist --wheel --no-isolation

Expand Down

0 comments on commit cf9f241

Please sign in to comment.