Skip to content

Commit

Permalink
➖ deps: remove pytest-parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
SigureMo committed Aug 4, 2023
1 parent 5a976db commit 64b654a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11-dev"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"]
architecture: ["x64"]
name: Python ${{ matrix.python-version }} on ${{ matrix.architecture }} test
steps:
Expand Down
1 change: 0 additions & 1 deletion dochooks/api_doc_checker/checkers/dead_link_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class DeadLinkChecker(Checker):
_links: list[tuple[Optional[int], str]] = []

def visit_reference(self, node: docutils.nodes.Element):

uri = node.get("refuri")
self._links.append((node.line, uri))

Expand Down
1 change: 0 additions & 1 deletion dochooks/api_doc_checker/core/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def create_custom_directive(directive_name: str) -> type[docutils.parsers.rst.Di
"""

class _CustomDirective(docutils.parsers.rst.Directive):

has_content = True

def run(self):
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VERSION := `poetry run python -c "import sys; from dochooks import __version__ as version; sys.stdout.write(version)"`

test:
poetry run pytest --workers auto
poetry run pytest
just clean

fmt:
Expand Down
43 changes: 27 additions & 16 deletions poetry.lock

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

5 changes: 2 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ httpx = "^0.23.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.0"
black = "^22.1"
pytest-parallel = "^0.1.1"
isort = "^5.10.1"
black = "^23.7"
isort = "^5.12.0"
tomli = { version = "^2.0.1", python = "<3.11" }
pre-commit = "^2.20.0"
types-docutils = "^0.19.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@

@pytest.mark.parametrize("need_format, unformatted, formatted", cases)
def test_check_and_format(need_format: bool, unformatted: str, formatted: str):

if need_format:
assert not check(unformatted)
else:
Expand Down

0 comments on commit 64b654a

Please sign in to comment.