mirror of
https://github.com/Hopiu/djLint.git
synced 2026-05-19 10:31:07 +00:00
Merge pull request #133 from jayvdb/fix-gitignore-test
Fix gitignore test
This commit is contained in:
commit
7d42a1151d
3 changed files with 7 additions and 7 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -9,7 +9,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
python-version: [3.7, 3.8, 3.9]
|
||||
python-version: [3.7, 3.8, 3.9, '3.10']
|
||||
fail-fast: true
|
||||
|
||||
steps:
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ def find_project_root(src: Path) -> Path:
|
|||
|
||||
|
||||
def load_gitignore(root: Path) -> PathSpec:
|
||||
"""Search upstream for a pyprojec.toml file."""
|
||||
"""Search upstream for a .gitignore file."""
|
||||
|
||||
gitignore = root / ".gitignore"
|
||||
git_lines: List[str] = []
|
||||
|
|
@ -54,7 +54,7 @@ def load_gitignore(root: Path) -> PathSpec:
|
|||
|
||||
|
||||
def find_pyproject(root: Path) -> Optional[Path]:
|
||||
"""Search upstream for a pyprojec.toml file."""
|
||||
"""Search upstream for a pyproject.toml file."""
|
||||
|
||||
pyproject = root / "pyproject.toml"
|
||||
|
||||
|
|
@ -138,7 +138,7 @@ def build_custom_blocks(custom_blocks: Union[str, None]) -> Optional[str]:
|
|||
|
||||
|
||||
class Config:
|
||||
"""Djling Config."""
|
||||
"""Djlint Config."""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
|||
6
tox.ini
6
tox.ini
|
|
@ -1,5 +1,5 @@
|
|||
[tox]
|
||||
envlist = test
|
||||
envlist = py3{7,8,9,10}-test
|
||||
skip_missing_interpreters = True
|
||||
isolated_build = True
|
||||
|
||||
|
|
@ -47,13 +47,13 @@ commands =
|
|||
; check-manifest -v
|
||||
skip_install: true
|
||||
|
||||
[testenv:test]
|
||||
[testenv]
|
||||
deps =
|
||||
pytest
|
||||
pytest-cov
|
||||
coverage
|
||||
commands =
|
||||
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing
|
||||
pytest --cov=src/djlint --cov-branch --cov-report xml:coverage.xml --cov-report term-missing {posargs:}
|
||||
skip_install: false
|
||||
|
||||
[testenv:docs]
|
||||
|
|
|
|||
Loading…
Reference in a new issue