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

cpython pathlib tests #104

Merged
merged 13 commits into from
Jun 21, 2023
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ show_source = true
count = true
per-file-ignores =
upath/__init__.py: F401
upath/tests/test_pathlib.py: E127,E128,E201,E202,E203,E225,E255,E302,E303,E306,E401,E402,E501,E731
exclude =
.noxfile,
.nox,
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
default_language_version:
python: python3
exclude: ^upath/tests/test_pathlib.py|^upath/tests/_pathlib_test_support.py
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def tests(session: nox.Session) -> None:
session.run(
"pytest",
"-m",
"not hdfs",
"not (hdfs or pathlib)",
"--cov",
"--cov-config=pyproject.toml",
*session.posargs,
Expand Down
12 changes: 11 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ exclude = '''
| dist
)/
'''
force-exclude = '''
(
^/upath/tests/_pathlib_test_support.py
|^/upath/tests/test_pathlib.py
)
'''

[tool.isort]
profile = "black"
Expand All @@ -31,7 +37,11 @@ force_single_line = true
line_length = 88

[tool.pytest.ini_options]
addopts = "-ra"
addopts = "-ra -m 'not (hdfs or pathlib)'"
markers = [
"hdfs: mark test as hdfs",
"pathlib: mark cpython pathlib tests",
]

[tool.coverage.run]
branch = true
Expand Down
Loading