Skip to content

Commit

Permalink
Remove unusued CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thesadru committed Sep 16, 2024
1 parent 1ccbf80 commit 28e1c6c
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 172 deletions.
14 changes: 0 additions & 14 deletions .readthedocs.yml

This file was deleted.

8 changes: 0 additions & 8 deletions dev-requirements/docs.txt

This file was deleted.

2 changes: 0 additions & 2 deletions dev-requirements/pytest.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
pytest
pytest-asyncio~=0.21.2
pytest-dotenv
pytest-cov
coverage[toml]
95 changes: 0 additions & 95 deletions docs/conf.py

This file was deleted.

Empty file removed docs/index.md
Empty file.
45 changes: 2 additions & 43 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
nox.options.sessions = ["reformat", "lint", "type-check", "verify-types", "test", "prettier"]
nox.options.reuse_existing_virtualenvs = True
PACKAGE = "arkprts"
GENERAL_TARGETS = ["./arkprts", "./tests", "./noxfile.py", "docs/conf.py"]
PRETTIER_TARGETS = ["*.md", "docs/*.md", "docs/**/*.md", "*.yml"]
GENERAL_TARGETS = ["./arkprts", "./tests", "./noxfile.py"]
PRETTIER_TARGETS = ["*.md"]
PYRIGHT_ENV = {"PYRIGHT_PYTHON_FORCE_VERSION": "latest"}

LOGGER = logging.getLogger("nox")
Expand All @@ -39,30 +39,6 @@ def install_requirements(session: nox.Session, *requirements: str, literal: bool
session.install("--upgrade", "pip", *requirements, silent=not isverbose())


@nox.session()
def docs(session: nox.Session) -> None:
"""Generate docs for this project using sphinx."""
install_requirements(session, "docs")

output = "docs/_build/html"

if "--autobuild" in session.posargs:
# sphinx-autobuild absolutely cannot do relative paths
session.run(
"sphinx-autobuild",
"docs",
output,
"--watch",
pathlib.Path(PACKAGE).resolve().as_posix(),
"--ignore",
pathlib.Path("docs/reference").resolve().as_posix(),
"--ignore",
"*.tmp",
)
else:
session.run("sphinx-build", "-M", "dirhtml", "docs", output)


@nox.session()
def lint(session: nox.Session) -> None:
"""Run this project's modules against ruff."""
Expand Down Expand Up @@ -94,20 +70,6 @@ def test(session: nox.Session) -> None:
if isverbose():
args += ["-vv", "--showlocals", "-o", "log_cli=true", "-o", "log_cli_level=DEBUG"]

if "--no-cov" in session.posargs:
session.posargs.remove("--no-cov")
else:
args += [
"--cov",
PACKAGE,
"--cov-report",
"term",
"--cov-report",
"html:coverage_html",
"--cov-report",
"xml",
]

session.run(
"python",
"-m",
Expand All @@ -120,9 +82,6 @@ def test(session: nox.Session) -> None:
success_codes=[0, 5],
)

if "--cov" in args:
session.log(f"HTML coverage report: {pathlib.Path('coverage_html/index.html').resolve()}")


@nox.session(name="type-check")
def type_check(session: nox.Session) -> None:
Expand Down
10 changes: 0 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,6 @@ reportImportCycles = "none"
reportPrivateUsage = "none"
disableBytesTypePromotions = false

[tool.coverage.run]
source = ["arkprts"]
omit = ["**/__init__.py", "**/__main__.py"]

[tool.coverage.report]
show_missing = true
skip_covered = false
sort = "cover"

[tool.ruff]
target-version = "py38"
# 120 from black and then a bit
Expand Down Expand Up @@ -124,7 +115,6 @@ unfixable = ["F401", "F841", "B007"]
# S10: hardcoded passwords (dummy values)
"tests/**" = ["D10", "F841", "S10"]
# INP001: No __init__.py (configuration)
"docs/conf.py" = ["INP001"]
"dev-requirements/setup.py" = ["INP001"]

[tool.ruff.lint.mccabe]
Expand Down

0 comments on commit 28e1c6c

Please sign in to comment.