Skip to content

Commit

Permalink
Merge pull request #233 from scrapinghub/update-tools
Browse files Browse the repository at this point in the history
Update tool versions
  • Loading branch information
kmike authored May 28, 2024
2 parents 78cbd42 + e668ca1 commit 610d2f2
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 26 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand All @@ -41,9 +41,9 @@ jobs:
tox-job: ["linters"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ repos:
- hooks:
- id: black
repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.0
rev: 24.4.2
- hooks:
- id: isort
repo: https://github.com/PyCQA/isort
Expand All @@ -11,7 +11,7 @@ repos:
- id: mypy
additional_dependencies: [types-requests, types-mock, lxml-stubs]
repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
rev: v1.10.0
- hooks:
- id: pyupgrade
repo: https://github.com/asottile/pyupgrade
Expand Down
17 changes: 0 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,33 +1,16 @@
[tool.mypy]
show_column_numbers = true
show_error_codes = true

disallow_any_unimported=false
disallow_any_expr=false
disallow_any_decorated=false
disallow_any_explicit=false
disallow_any_generics=true
disallow_subclassing_any=false

disallow_untyped_calls=false
disallow_untyped_defs=true
disallow_incomplete_defs=true
check_untyped_defs=true
disallow_untyped_decorators=false

no_implicit_optional=true
strict_optional=true

warn_redundant_casts=true
warn_unused_ignores=true
warn_no_return=true
warn_return_any=true
warn_unreachable=false

strict_equality=true

ignore_missing_imports=false

[[tool.mypy.overrides]]
module = [
'mf2py.*',
Expand Down
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ commands =
[testenv:linters]
deps = -rrequirements-dev.txt
commands = pre-commit run --all-files --show-diff-on-failure

[testenv:twinecheck]
deps =
twine==5.1.0
build==1.2.1
commands =
python -m build --sdist
twine check dist/*

0 comments on commit 610d2f2

Please sign in to comment.