diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06e31ce..ce02300 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,21 +18,21 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: extractions/setup-just@v2 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - run: just install lint test: runs-on: ubuntu-latest strategy: matrix: - pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12'] + pythonversion: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: extractions/setup-just@v2 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.pythonversion }} - run: just install coverage @@ -40,11 +40,11 @@ jobs: if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: extractions/setup-just@v2 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - run: just install coverage - uses: coverallsapp/github-action@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4880e09..55640ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,11 +9,11 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: extractions/setup-just@v2 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' - name: Build package run: just install build - name: Publish to PyPI diff --git a/justfile b/justfile index 47ab518..f8907cb 100644 --- a/justfile +++ b/justfile @@ -54,7 +54,7 @@ isort-check: # Run mypy type checking on the project mypy: - {{VIRTUAL_BIN}}/mypy {{PROJECT_NAME}}/ {{TEST_DIR}}/ + {{VIRTUAL_BIN}}/mypy --install-types --non-interactive {{PROJECT_NAME}}/ {{TEST_DIR}}/ # Test the project test: diff --git a/pyproject.toml b/pyproject.toml index 547f4f4..9f283ac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,3 +13,6 @@ sections = "FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER" lines_after_imports = 2 include_trailing_comma = true use_parentheses = true + +[tool.mypy] +disable_error_code = "import-untyped" diff --git a/setup.py b/setup.py index 0d45189..eb389f3 100644 --- a/setup.py +++ b/setup.py @@ -21,14 +21,13 @@ DEV_REQUIREMENTS = [ 'bandit == 1.7.*', - 'black == 23.*', - 'build == 0.10.*', - 'flake8 == 6.*', + 'black == 24.*', + 'build == 1.1.*', + 'flake8 == 7.*', 'isort == 5.*', - 'mypy == 1.5.*', - 'pytest == 7.*', + 'mypy == 1.11.*', + 'pytest == 8.*', 'pytest-cov == 4.*', - 'twine == 4.*', ] setuptools.setup(