-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from nschloe/remove-htmlhint
Remove htmlhint
- Loading branch information
Showing
12 changed files
with
95 additions
and
1,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,49 +3,35 @@ name: ci | |
on: | ||
push: | ||
branches: | ||
- main | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
- main | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.x" | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "10.x" | ||
- uses: actions/checkout@v2 | ||
- name: Lint with flake8 | ||
run: | | ||
pip install flake8 | ||
flake8 . | ||
- name: Lint with black | ||
run: | | ||
pip install black | ||
black --check . | ||
- name: Lint with npm | ||
run: | | ||
npm ci | ||
npm run prettier | ||
npm run htmlhint | ||
- name: Check out repo | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7, 3.8, 3.9] | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/checkout@v2 | ||
- name: Test with tox | ||
run: | | ||
pip install tox | ||
tox | ||
- uses: codecov/codecov-action@v1 | ||
if: ${{ matrix.python-version == '3.9' }} | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/checkout@v2 | ||
- name: Test with tox | ||
run: | | ||
pip install tox | ||
tox | ||
- uses: codecov/codecov-action@v1 | ||
if: ${{ matrix.python-version == '3.9' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
repos: | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.9.1 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/python/black | ||
rev: 21.6b0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
hooks: | ||
- id: flake8 | ||
|
||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.3.2 | ||
hooks: | ||
- id: prettier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.