Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run fawltydeps against itself in CI #348

Merged
merged 7 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Tests

on: [workflow_call]

Expand Down Expand Up @@ -30,3 +30,5 @@ jobs:
run: poetry run nox --no-venv --no-install --non-interactive -s tests -- -vv
- name: Run integration tests on Python ${{ matrix.python-version }}
run: poetry run nox --no-venv --no-install --non-interactive -s integration_tests -- -vv
- name: Run fawltydeps on Python ${{ matrix.python-version }}
run: poetry run nox --no-venv --no-install --non-interactive -s self_test -- -vv
7 changes: 7 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ def integration_tests(session):
session.run("pytest", "-x", "-m", "integration", "--durations=10", *session.posargs)


@nox.session(python=python_versions)
def self_test(session):
install_groups(session)
venv_path = session.run("poetry", "env", "info", "--path", silent=True).strip()
zz1874 marked this conversation as resolved.
Show resolved Hide resolved
session.run("fawltydeps", f"--pyenv={venv_path}")


@nox.session(python=python_versions)
def lint(session):
install_groups(session, include=["lint"])
Expand Down
19 changes: 18 additions & 1 deletion poetry.lock

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

18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ pip-requirements-parser = "^32.0.1"
pydantic = "^1.10.4"
tomli = {version = "^2.0.1", python = "<3.11"}
typing-extensions = {version = "^4.4.0", python = "<3.8"}
setuptools = "^68.0.0"

[tool.poetry.group.nox]
optional = true
Expand Down Expand Up @@ -150,3 +151,20 @@ uri-ignore-words-list = "*"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.fawltydeps]
code = ["fawltydeps"]
deps = ["pyproject.toml"]
ignore_unused = [
# Tools not meant to be imported
"black",
"codespell",
"hypothesis",
"mypy",
"nox",
"pylint",
"pytest",
# Other dependencies that enable functionality in the above tools
"colorama",
"types-setuptools",
]
Loading