Skip to content

Commit

Permalink
Test 3.11 explicitly, update test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pappasam committed Dec 29, 2022
1 parent 2e718d4 commit 241b6ee
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 95 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Select Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: "3.10"
architecture: x64

- name: Install Dependencies
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Select Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: "3.10"
architecture: x64

- name: Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ ignored-classes=SQLObject
# List of members which are set dynamically and missed by pylint inference
# system, and so shouldn't trigger E0201 when accessed. Python regular
# expressions are accepted.
generated-members=REQUEST,acl_users,aq_parent
generated-members=REQUEST,acl_users,aq_parent,os.*


[VARIABLES]
Expand Down
160 changes: 82 additions & 78 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 13 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,29 @@ python = "^3.7"
tomlkit = ">=0.8.0"

[tool.poetry.dev-dependencies]
pylint = "^2.7.4"
black = "^22.1.0"
mypy = "^0.941"
pre-commit = "^2.17.0"
tox = "^3.13"
pytest = "^6.2.2"
pylint = ">=2.13.9"
black = ">=22.6.0"
mypy = ">=0.961"
pre-commit = ">=2.19.0"
tox = "^3.25.1"
pytest = ">=7.1.2"
tox-asdf = "^0.1.0"
isort = "^5.8.0"
isort = "^5.11.4"
sphinx = "^4.4.0"
sphinx-rtd-theme = "^1.0.0"
m2r2 = "^0.3.2"
docformatter = "^1.4"
pytest-cov = "^2.11.1"
sphinx-argparse = "^0.3.1"
sphinx-argparse = ">=0.3.1"
m2r2 = ">=0.3.2"
docformatter = ">=1.5.1"
pytest-cov = ">=3.0.0"


[tool.poetry.scripts]
toml-sort = 'toml_sort.cli:cli'

[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37,py38,py39,py310
envlist = py37,py38,py39,py310,py311
isolated_build = true
skipsdist = true
[testenv]
Expand Down
2 changes: 1 addition & 1 deletion toml_sort/tomlsort.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def __init__(
input_toml: str,
only_sort_tables: bool = False,
ignore_case: bool = False,
comment_config: CommentConfiguration = None,
comment_config: Optional[CommentConfiguration] = None,
) -> None:
"""Initializer."""
self.input_toml = input_toml
Expand Down

0 comments on commit 241b6ee

Please sign in to comment.