Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alexferl committed Apr 20, 2024
1 parent 731d841 commit 7626f13
Show file tree
Hide file tree
Showing 8 changed files with 171 additions and 158 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,20 @@ jobs:
runs-on: "${{ matrix.os }}"
strategy:
matrix:
os:
- ubuntu-latest
python-version:
- "3.11"
include:
- os: ubuntu-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: "3.11"
- os: ubuntu-latest
python-version: "3.12"
steps:
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: pip install -r requirements-dev.txt
- run: python3 -m unittest
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
args: ['--fix=lf']
description: Forces to replace line ending by the UNIX 'lf' character.
- repo: https://github.com/psf/black
rev: 23.11.0
rev: 24.4.0
hooks:
- id: black
language_version: python3
Expand Down
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
.PHONY: help dev lock test cover cover-html fmt type pre-commit
.PHONY: help dev test cover cover-html fmt type lock pre-commit

.DEFAULT: help
help:
@echo "make dev"
@echo " prepare development environment"
@echo "make lock"
@echo " lock requirements"
@echo "make test"
@echo " run tests"
@echo "make cover"
Expand All @@ -16,18 +14,15 @@ help:
@echo " run black code formatter"
@echo "make type"
@echo " run mypy static type checker"
@echo "make lock"
@echo " lock requirements"
@echo "make pre-commit"
@echo " run pre-commit hooks"

dev:
pipenv install --dev
pipenv run pre-commit install

lock:
pipenv lock
pipenv requirements > requirements.txt
pipenv requirements --dev > requirements-dev.txt

test:
pipenv run test

Expand All @@ -46,5 +41,10 @@ fmt:
type:
pipenv run mypy .

lock:
pipenv lock
pipenv requirements > requirements.txt
pipenv requirements --dev > requirements-dev.txt

pre-commit:
pipenv run pre-commit
8 changes: 4 additions & 4 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ name = "pypi"


[dev-packages]
black = "==23.11.0"
coverage = "==7.3.3"
mypy = "==1.7.1"
pre-commit = "==3.5.0"
black = "==24.4.0"
coverage = "==7.4.4"
mypy = "==1.9.0"
pre-commit = "==3.7.0"

[scripts]
test = "python -m unittest"
257 changes: 131 additions & 126 deletions Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Includes:
- [pre-commit](https://pre-commit.com)

## Requirements
- Python 3.11+
- Python 3.9+

## Using
```shell
Expand Down
22 changes: 11 additions & 11 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
-i https://pypi.org/simple
black==23.11.0; python_version >= '3.8'
black==24.4.0; python_version >= '3.8'
cfgv==3.4.0; python_version >= '3.8'
click==8.1.7; python_version >= '3.7'
coverage==7.3.3; python_version >= '3.8'
coverage==7.4.4; python_version >= '3.8'
distlib==0.3.8
filelock==3.13.1; python_version >= '3.8'
identify==2.5.33; python_version >= '3.8'
mypy==1.7.1; python_version >= '3.8'
filelock==3.13.4; python_version >= '3.8'
identify==2.5.36; python_version >= '3.8'
mypy==1.9.0; python_version >= '3.8'
mypy-extensions==1.0.0; python_version >= '3.5'
nodeenv==1.8.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6'
packaging==23.2; python_version >= '3.7'
packaging==24.0; python_version >= '3.7'
pathspec==0.12.1; python_version >= '3.8'
platformdirs==4.1.0; python_version >= '3.8'
pre-commit==3.5.0; python_version >= '3.8'
platformdirs==4.2.0; python_version >= '3.8'
pre-commit==3.7.0; python_version >= '3.9'
pyyaml==6.0.1; python_version >= '3.6'
setuptools==69.0.2; python_version >= '3.8'
typing-extensions==4.9.0; python_version >= '3.8'
virtualenv==20.25.0; python_version >= '3.7'
setuptools==69.5.1; python_version >= '3.8'
typing-extensions==4.11.0; python_version >= '3.8'
virtualenv==20.25.3; python_version >= '3.7'
5 changes: 4 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ classifiers =
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Software Development :: Libraries :: Python Modules

[options]
zip_safe = False
include_package_data = True
python_requires = >=3.11
python_requires = >=3.9

0 comments on commit 7626f13

Please sign in to comment.