Merge pull request #133 from jayvdb/fix-gitignore-test

Fix gitignore test
This commit is contained in:
sur.la.route 2021-11-02 08:46:24 +01:00 committed by GitHub
commit 7d42a1151d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View file

@ -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:

View file

@ -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,

View file

@ -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]