Skip to content

Commit 94dd4e5

Browse files
committed
Update skel 2024-01-19
rev: e254aa0
1 parent 847b428 commit 94dd4e5

File tree

9 files changed

+50
-21
lines changed

9 files changed

+50
-21
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
18+
python-version: ["3.10", "3.11", "3.12"]
1919
os: [macOS-latest, ubuntu-latest, windows-latest]
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v1
23+
uses: actions/checkout@v4
2424
- name: Set Up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
25+
uses: actions/setup-python@v5
2626
with:
2727
python-version: ${{ matrix.python-version }}
2828
- name: Install
@@ -34,4 +34,3 @@ jobs:
3434
run: make test
3535
- name: Lint
3636
run: make lint
37-
if: ${{ matrix.python-version != '3.9' }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ celerybeat-schedule
8383

8484
# Environments
8585
.env
86-
.venv
86+
.venv*
8787
env/
8888
venv/
8989
ENV/

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ venv:
1212

1313
.PHONY: setup
1414
setup:
15-
python -m pip install -Ur requirements-dev.txt
15+
python -m pip install -Ue .[dev,test]
1616

1717
.PHONY: test
1818
test:
@@ -27,7 +27,8 @@ format:
2727
lint:
2828
python -m ufmt check $(SOURCES)
2929
python -m flake8 $(SOURCES)
30-
mypy --strict checkdeps
30+
python -m checkdeps --allow-names checkdeps checkdeps
31+
mypy --strict --non-interactive checkdeps
3132

3233
.PHONY: release
3334
release:

checkdeps/__init__.py

Whitespace-only changes.

checkdeps/py.typed

Whitespace-only changes.

checkdeps/tests/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# from .foo import FooTest
2+
3+
__all__ = [
4+
# "FooTest",
5+
]

checkdeps/tests/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import unittest
2+
3+
if __name__ == "__main__":
4+
unittest.main(module="checkdeps.tests", verbosity=2)

setup.cfg

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,24 @@ author_email = [email protected]
1111
[options]
1212
packages = checkdeps
1313
setup_requires =
14-
setuptools_scm
15-
setuptools >= 38.3.0
16-
python_requires = >=3.6
14+
setuptools_scm >= 8
15+
setuptools >= 65
16+
python_requires = >=3.10
17+
include_package_data = true
18+
19+
[options.extras_require]
20+
dev =
21+
black == 23.12.1
22+
checkdeps == 0.0.2
23+
flake8 == 7.0.0
24+
mypy == 1.8.0
25+
tox == 4.12.1
26+
twine == 4.0.2
27+
ufmt == 2.3.0
28+
usort == 1.0.7
29+
wheel == 0.42.0
30+
test =
31+
coverage >= 6
1732

1833
[check]
1934
metadata = true
@@ -30,26 +45,30 @@ precision = 1
3045
show_missing = True
3146
skip_covered = True
3247

33-
[isort]
34-
line_length = 88
35-
multi_line_output = 3
36-
force_grid_wrap = False
37-
include_trailing_comma = True
38-
use_parentheses = True
39-
4048
[mypy]
4149
ignore_missing_imports = True
50+
install_types = True
4251

4352
[tox:tox]
44-
envlist = py36, py37, py38
53+
envlist = py{310,311,312}, coverage
4554

4655
[testenv]
47-
deps = -rrequirements-dev.txt
48-
whitelist_externals = make
56+
deps = .[test]
57+
allowlist_externals = make
4958
commands =
5059
make test
5160
setenv =
52-
py{36,37,38}: COVERAGE_FILE={envdir}/.coverage
61+
COVERAGE_FILE={toxworkdir}/.coverage.{envname}
62+
63+
[testenv:coverage]
64+
deps = coverage
65+
setenv =
66+
COVERAGE_FILE={toxworkdir}/.coverage
67+
commands =
68+
coverage combine
69+
coverage report
70+
depends =
71+
py{310,311,312}
5372

5473
[flake8]
5574
ignore = E203, E231, E266, E302, E501, W503

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
from setuptools import setup
2+
23
setup(use_scm_version=True)

0 commit comments

Comments
 (0)