Skip to content

Commit

Permalink
Don't run the linters as part of test task.
Browse files Browse the repository at this point in the history
  • Loading branch information
duckinator authored and nbraud committed Jan 1, 2021
1 parent d44f46c commit a6a4275
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ FreeBSD_task:
- python${PYTHON} -m pip install -e .[testing_only]
script:
- python${PYTHON} --version
- bork run _test-only
- bork run test

# Windows_task:
# allow_failures: $CIRRUS_TASK_NAME =~ '.*-rc-.*'
Expand Down
10 changes: 4 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ strip_zipapp_version = true
[tool.bork.aliases]
# Runs *only* pylint and mypy. (Not the actual tests.)
lint = "pytest -k 'pylint or mypy' --pylint --mypy --verbose"
# Runs all tests and pylint.
test = "pytest --pylint --mypy --verbose"
# Runs fast tests, and pylint.
test-fast = "pytest --pylint --mypy --verbose -m 'not slow'"
# Runs all tests.
test = "pytest --verbose"
# Runs fast tests.
test-fast = "pytest --verbose -m 'not slow'"
# Runs slow tests.
test-slow = "pytest --verbose -m slow"
# Runs fast tests and slow tests, but not pylint.
_test-only = "pytest --verbose"
2 changes: 1 addition & 1 deletion tests/test_cmd_aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
def test_cmd_aliases():
result = bork_cli("aliases")
assert result.exit_code == 0
assert result.output == 'lint\ntest\ntest-fast\ntest-slow\n_test-only\n'
assert result.output == 'lint\ntest\ntest-fast\ntest-slow\n'

0 comments on commit a6a4275

Please sign in to comment.