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

Move docs to deptry.com #630

Merged
merged 2 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from all 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: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Dependency issues are detected by scanning for imported modules within all Pytho

---
<p align="center">
<a href="https://fpgmaas.github.io/deptry">Documentation</a> - <a href="https://fpgmaas.github.io/deptry/contributing/">Contributing</a>
<a href="https://deptry.com">Documentation</a> - <a href="https://deptry.com/contributing/">Contributing</a>
</p>

---
Expand Down Expand Up @@ -66,7 +66,7 @@ Found 3 dependency issues.

### Configuration

_deptry_ can be configured by using additional command line arguments, or by adding a `[tool.deptry]` section in _pyproject.toml_. For more information, see the [Usage and Configuration](https://fpgmaas.github.io/deptry/usage/) section of the documentation..
_deptry_ can be configured by using additional command line arguments, or by adding a `[tool.deptry]` section in _pyproject.toml_. For more information, see the [Usage and Configuration](https://deptry.com/usage/) section of the documentation..

---

Expand Down
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deptry.com
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ site_name: deptry
edit_uri: edit/main/docs/
repo_name: fpgmaas/deptry
repo_url: https://github.com/fpgmaas/deptry
site_url: https://fpgmaas.github.io/deptry
site_url: https://deptry.com
site_description: A command line tool to check for unused dependencies in a poetry managed python project.
site_author: Florian Maas
copyright: Maintained by <a href="https://fpgmaas.com">Florian</a>.
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ typing = [
]

[project.urls]
homepage = "https://fpgmaas.github.io/deptry"
homepage = "https://deptry.com"
repository = "https://github.com/fpgmaas/deptry"
documentation = "https://fpgmaas.github.io/deptry"
documentation = "https://deptry.com"
changelog = "https://github.com/fpgmaas/deptry/blob/main/CHANGELOG.md"

[project.scripts]
Expand Down
4 changes: 2 additions & 2 deletions python/deptry/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def display_deptry_version(ctx: click.Context, _param: click.Parameter, value: b
"-i",
type=COMMA_SEPARATED_TUPLE,
help="""A comma-separated list of error codes to ignore. e.g. `deptry --ignore DEP001,DEP002`
For more information regarding the error codes, see https://fpgmaas.github.io/deptry/issue-codes/""",
For more information regarding the error codes, see https://deptry.com/issue-codes/""",
default=(),
)
@click.option(
Expand All @@ -144,7 +144,7 @@ def display_deptry_version(ctx: click.Context, _param: click.Parameter, value: b
type=COMMA_SEPARATED_MAPPING,
help="""A comma-separated mapping of packages or modules to be ignored per error code.
. e.g. ``deptry . --per-rule-ignores DEP001=matplotlib,DEP002=pandas|numpy``
For more information regarding the error codes, see https://fpgmaas.github.io/deptry/issue-codes/""",
For more information regarding the error codes, see https://deptry.com/issue-codes/""",
default={},
)
@click.option(
Expand Down
2 changes: 1 addition & 1 deletion python/deptry/reporters/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _log_total_number_of_violations_found(self, violations: list[Violation]) ->
issue_word="issues" if len(violations) > 1 else "issue",
)
)
logging.info("\nFor more information, see the documentation: https://fpgmaas.github.io/deptry/")
logging.info("\nFor more information, see the documentation: https://deptry.com/")
else:
logging.info(self._stylize("{BOLD}{GREEN}Success! No dependency issues found.{RESET}"))

Expand Down
6 changes: 3 additions & 3 deletions tests/functional/cli/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def test_cli_with_no_ansi(poetry_venv_factory: PoetryVenvFactory) -> None:
f"{Path('src/main.py')}:6:8: DEP001 'white' imported but missing from the dependency definitions",
"Found 4 dependency issues.",
"",
"For more information, see the documentation: https://fpgmaas.github.io/deptry/",
"For more information, see the documentation: https://deptry.com/",
"",
]

Expand Down Expand Up @@ -524,7 +524,7 @@ def test_cli_with_not_json_output(poetry_venv_factory: PoetryVenvFactory) -> Non
),
stylize("{BOLD}{RED}Found 4 dependency issues.{RESET}"),
"",
"For more information, see the documentation: https://fpgmaas.github.io/deptry/",
"For more information, see the documentation: https://deptry.com/",
"",
]

Expand Down Expand Up @@ -565,7 +565,7 @@ def test_cli_with_json_output(poetry_venv_factory: PoetryVenvFactory) -> None:
),
stylize("{BOLD}{RED}Found 4 dependency issues.{RESET}"),
"",
"For more information, see the documentation: https://fpgmaas.github.io/deptry/",
"For more information, see the documentation: https://deptry.com/",
"",
]

Expand Down
6 changes: 3 additions & 3 deletions tests/unit/reporters/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def test_logging_number_multiple(caplog: LogCaptureFixture) -> None:
file=Path("foo.py"),
),
stylize("{BOLD}{RED}Found 4 dependency issues.{RESET}"),
"\nFor more information, see the documentation: https://fpgmaas.github.io/deptry/",
"\nFor more information, see the documentation: https://deptry.com/",
]


Expand All @@ -82,7 +82,7 @@ def test_logging_number_single(caplog: LogCaptureFixture) -> None:
file=Path("foo.py"),
),
stylize("{BOLD}{RED}Found 1 dependency issue.{RESET}"),
"\nFor more information, see the documentation: https://fpgmaas.github.io/deptry/",
"\nFor more information, see the documentation: https://deptry.com/",
]


Expand Down Expand Up @@ -121,7 +121,7 @@ def test_logging_no_ansi(caplog: LogCaptureFixture) -> None:
f"{Path('foo/bar.py')}:1:2: DEP003 'foo_package' imported but it is a transitive dependency",
f"{Path('foo.py')}:1:2: DEP004 'foo' imported but declared as a dev dependency",
"Found 4 dependency issues.",
"\nFor more information, see the documentation: https://fpgmaas.github.io/deptry/",
"\nFor more information, see the documentation: https://deptry.com/",
]


Expand Down