Skip to content
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
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ repos:
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
files: ^(language_tool_python|tests)/

# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ test:
uvx --with defusedxml genbadge coverage --input-file coverage.xml --silent

doc:
uv run --group docs --locked sphinx-apidoc -o docs/source/references language_tool_python
uv run --group docs --locked sphinx-build -M html docs/source docs/build

publish:
Expand Down
3 changes: 0 additions & 3 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ uvx --with defusedxml genbadge coverage --input-file coverage.xml --silent
exit /b %errorlevel%

:doc
call uv run --group docs --locked sphinx-apidoc -o docs\source\references language_tool_python
if errorlevel 1 exit /b %errorlevel%

call uv run --group docs --locked sphinx-build -M html docs/source docs/build
exit /b %errorlevel%

Expand Down
9 changes: 3 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,9 @@ language_tool_python = "language_tool_python.__main__:main"
requires = ["uv_build>=0.11.14,<0.12"]
build-backend = "uv_build"

[tool.uv.build-backend]
module-root = "" # uv expects the code to be in a "src/" directory by default, but our code is in the the current dir

[tool.ruff]
line-length = 88
include = ["language_tool_python/*.py", "tests/*.py"]
include = ["src/**/*.py", "tests/**/*.py"]

[tool.ruff.lint]
select = [
Expand Down Expand Up @@ -144,10 +141,10 @@ ignore = [
"S101", # Need to use assert statements in tests
"SLF001" # Need to use private members of the library for testing
]
"language_tool_python/__main__.py" = ["T201"] # Allow usage of print in the CLI entry point
"src/language_tool_python/__main__.py" = ["T201"] # Allow usage of print in the CLI entry point

[tool.mypy]
files = ["language_tool_python", "tests"]
files = ["src", "tests"]
disallow_any_decorated = true
disallow_any_explicit = true
disallow_any_expr = true
Expand Down
4 changes: 2 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[pytest]
addopts = -vra --cov=language_tool_python --cov-report=html --cov-report=xml
addopts = -vra --cov=src --cov-report=html --cov-report=xml
testpaths = tests

[coverage:run]
source = language_tool_python
source = src
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading