-
-
Notifications
You must be signed in to change notification settings - Fork 24
Add tox. #68
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
base: main
Are you sure you want to change the base?
Add tox. #68
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from random import choice | ||
import re | ||
from random import choice | ||
|
||
from sphinxlint.__main__ import main | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
from sphinxlint.utils import hide_non_rst_blocks | ||
|
||
|
||
LITERAL = r""" | ||
Hide non-RST Blocks | ||
=================== | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Btw, if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done in #100. There's some non-tox things added in this PR. If they're still needed, should this PR be rebased. or this closed and those bits split out? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Split make sense to me... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. btw, how about trying |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[tox] | ||
envlist = py3{8,9,10,11,12}, mypy, black, pylint | ||
isolated_build = True | ||
skip_missing_interpreters = True | ||
|
||
[testenv] | ||
deps = pytest | ||
commands = pytest | ||
JulienPalard marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[testenv:black] | ||
deps = black | ||
skip_install = True | ||
commands = black --check --diff sphinxlint/ tests/ | ||
JulienPalard marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
[testenv:mypy] | ||
deps = | ||
mypy | ||
types-polib | ||
skip_install = True | ||
commands = mypy --exclude fixtures --ignore-missing-imports sphinxlint/ tests/ | ||
|
||
[testenv:pylint] | ||
deps = | ||
pylint | ||
pytest | ||
JulienPalard marked this conversation as resolved.
Show resolved
Hide resolved
|
||
commands = pylint --ignore fixtures sphinxlint/ tests/ --disable missing-function-docstring,missing-module-docstring,missing-class-docstring,too-few-public-methods,too-many-return-statements --good-names=po |
Uh oh!
There was an error while loading. Please reload this page.