Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 20 additions & 19 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,27 @@ name: tests

jobs:

# misc:
misc:
# name: "Linting configs and git"
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 12
#
# - uses: docker://docker.io/tamasfe/taplo:latest
# name: "Lint TOMLs"
# with:
# args: fmt --check --diff
#
# - uses: actions/setup-python@v5
# - name: "Install tox"
# run: |
# pip install tox
# - name: "Lint YAMLs"
# run: |
# tox -e lint-yaml
name: "Linting configs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 12

- uses: docker://docker.io/tamasfe/taplo:latest
name: "Lint TOMLs"
with:
args: fmt --check --diff

- uses: actions/setup-python@v5
- name: "Install tox"
run: |
pip install tox
- name: "Lint YAMLs"
run: |
tox -e lint-yaml
# - name: "Lint git"
# run: |
# tox -e lint-git
Expand Down
8 changes: 8 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
exclude = [
"**/.venv/**/*.toml",
"**/.tox/**/*.toml",
]

[formatting]
column_width = 88
array_auto_collapse = false
9 changes: 5 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
dist: xenial
language: python
matrix:
include:
- python: '3.6'
- python: '3.7'
- python: "3.6"
- python: "3.7"
env: TOXENV=py37
- python: '3.8'
- python: "3.8"
env: TOXENV=py37
install:
- python -m pip install --upgrade --editable=./
script:
script:
- nosetests test $EXTRA_ARGS
- if [ "$TOXENV" = "py37" ]; then nosetests test37; fi
18 changes: 18 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
extends: default

ignore:
- "**/.venv/*"
- "**/.tox/*"

rules:
comments:
require-starting-space: true
min-spaces-from-content: 1
comments-indentation: disable
quoted-strings:
quote-type: double
required: false
check-keys: true
line-length:
max: 88
4 changes: 2 additions & 2 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ clean:

pytest:
if ! command -v pytest &>/dev/null; then python3 -m pip install --upgrade pytest; fi
pytest test
pytest tests

test:
if ! command -v nosetests &>/dev/null; then python3 -m pip install --upgrade nose; fi
nosetests test
nosetests tests
Loading
Loading