Skip to content

Commit

Permalink
Expose ansiscape.checks (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
cariad authored Jul 21, 2022
1 parent 07118b6 commit 088960d
Show file tree
Hide file tree
Showing 6 changed files with 422 additions and 407 deletions.
7 changes: 5 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,20 @@ name = "pypi"
[packages]

[dev-packages]
black = "==21.8b0"
black = "~=22.6.0"
dinject = "~=1.0.4"
flake8 = "*"
isort = "*"
mkdocs = "*"
# https://twitter.com/readthedocs/status/1507388916013314048
jinja2 = "<3.1.0"
mkdocs = "~=1.3.1"
mypy = "==0.910"
pytest = "*"
pytest-cov = "*"
twine = "*"
shellcheck-py = "*"
yamllint = "*"


[requires]
python_version = "3.10"
812 changes: 409 additions & 403 deletions Pipfile.lock

Large diffs are not rendered by default.

File renamed without changes.
4 changes: 2 additions & 2 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ find . -name "*.sh" -not -path "*/.venv/*" -exec shellcheck -o all --severity st

yamllint --strict .

if [ "${CI:=}" == "true" ]; then
if [[ "${CI:=}" == "true" ]]; then
isort . --check-only --diff
else
isort .
fi

if [ "${CI:=}" == "true" ]; then
if [[ "${CI:=}" == "true" ]]; then
black . --check --diff
else
black .
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
name="ansiscape",
packages=[
"ansiscape",
"ansiscape.checks",
"ansiscape.enums",
"ansiscape.exceptions",
"ansiscape.interpreters",
Expand Down
5 changes: 5 additions & 0 deletions test-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ assert() {
exit 1
}

# shellcheck disable=SC2312
assert "$(ansiscape --version)" "${CIRCLE_TAG:-"-1.-1.-1"}"

# shellcheck disable=SC2312
assert "$(ansiscape --check)" "no"

# shellcheck disable=SC2312
assert "$(naughtty ansiscape --check)" $'yes\r'

0 comments on commit 088960d

Please sign in to comment.