forked from akaihola/darker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format YAML files with yamllint rules
- Loading branch information
Showing
8 changed files
with
97 additions
and
82 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,29 @@ | ||
--- | ||
name: test-future | ||
|
||
# This workflow detects breakage against upcoming releases of dependencies | ||
# even in the absence of activity in Darker's own repository. | ||
|
||
on: | ||
on: # yamllint disable-line rule:truthy | ||
schedule: | ||
- cron: "05 20 * * 6" | ||
- cron: "05 20 * * 6" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: 'master' | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade 'pip>=20.3' # strict dependency resolution added in pip 20.3 | ||
pip install -e '.[isort,test]' --constraint constraints-future.txt | ||
- name: Test with pytest | ||
run: | | ||
pytest | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: 'master' | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
- name: Install dependencies | ||
run: | | ||
# strict dependency resolution added in pip 20.3 | ||
python -m pip install --upgrade 'pip>=20.3' | ||
pip install -e '.[isort,test]' --constraint constraints-future.txt | ||
- name: Test with pytest | ||
run: | | ||
pytest |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
name: Yaml Lint | ||
on: [push] # yamllint disable-line rule:truthy | ||
jobs: | ||
|
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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
--- | ||
# See https://pre-commit.com for more information | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v3.3.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/akaihola/darker | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-added-large-files | ||
- repo: https://github.com/akaihola/darker | ||
rev: master | ||
hooks: | ||
- id: darker | ||
- id: darker | ||
args: [--isort] | ||
additional_dependencies: | ||
- black~=21.8b0 | ||
- isort~=5.9 | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks-markup | ||
rev: v1.0.1 | ||
hooks: | ||
- id: rst-linter | ||
- id: rst-linter | ||
args: [--allow-raw] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--- | ||
ignore: | ||
- 'test_*.py' # parameterized tests would trigger Length and Working Memory detection | ||
- 'test_*.py' # parameterized tests trigger Length & Working Memory detection |
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