Skip to content

Commit

Permalink
Derive the yamllint config from default
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Aug 22, 2022
1 parent fdea6b5 commit 3f9b1cb
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
# yamllint disable rule:truthy

codecov:
bot: codecov
notify:
Expand Down Expand Up @@ -26,3 +29,5 @@ comment:
layout: "header, diff"
behavior: default
require_changes: no

...
12 changes: 8 additions & 4 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
---

# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: # 4 GitHub Sponsors-enabled usernames
- jaraco
- webknjaz
# patreon: # Replace with a single Patreon username
# open_collective: # Replace with a single Open Collective username
# ko_fi: # Replace with a single Ko-fi username
tidelift: pypi/cheroot # A single Tidelift platform-name/package-name e.g., npm/babel
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
tidelift: pypi/cheroot
# community_bridge: # A Community Bridge project-name e.g., cloud-foundry
# liberapay: # Replace with a single Liberapay username
# issuehunt: # Replace with a single IssueHunt username
# otechie: # Replace with a single Otechie username
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
# custom: # Up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

...
6 changes: 5 additions & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
---

blank_issues_enabled: false
contact_links:
- name: 💼 For Enterprise
url: https://tidelift.com/subscription/pkg/pypi-cheroot?utm_source=pypi-cheroot&utm_medium=referral&utm_campaign=github
url: https://tidelift.com/subscription/pkg/pypi-cheroot?utm_source=pypi-cheroot&utm_medium=referral&utm_campaign=github # yamllint disable-line rule:line-length
about: Cheroot is available as part of the Tidelift Subscription.
- name: 💬 Gitter Chat
url: https://gitter.im/cherrypy/cherrypy
about: Please ask and answer usage questions here.
- name: 🤷💻🤦 StackOverflow
url: https://stackoverflow.com/questions/tagged/cheroot+or+cherrypy
about: Please ask typical Q&A here.

...
4 changes: 4 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
---

rtd:
project: cheroot

...
4 changes: 4 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

# Configuration for probot-stale - https://github.com/probot/stale


Expand Down Expand Up @@ -30,3 +32,5 @@ closeComment: false

# Limit to only `issues` or `pulls`
# only: issues

...
6 changes: 4 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,10 @@ jobs:
--skip-missing-interpreters false
--notest
- name: Initialize pre-commit envs if needed
run: |
test -d .tox/pre-commit && .tox/pre-commit/bin/python -m pre_commit install-hooks || :
run: >-
test -d .tox/pre-commit
&& .tox/pre-commit/bin/python -m pre_commit install-hooks
|| :
- name: >-
Run tox envs: `${{ env.TOXENV }}`
run: >-
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/pip-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ env:
github.event_name == 'workflow_dispatch'
&& github.event.inputs.package-distribuition
)
&& format('-updating-{0}', github.event.inputs.package-distribuition) || '' }}
&& format('-updating-{0}', github.event.inputs.package-distribuition)
|| ''
}}
concurrency:
group: >-
Expand Down Expand Up @@ -170,7 +172,10 @@ jobs:
&& 'ln -svf tests.in "${BASE_NAME}.in"; git add "${BASE_NAME}.in"'
|| 'GIT_INDEX_OBJECT_SYMLINK_TYPE=120000;
SYMLINK_TARGET_HASH=$(echo -n tests.in | git hash-object --stdin);
CURRENT_SRC_OBJECT_TYPE="$(git ls-tree HEAD -- "${BASE_NAME}.in" | awk "{print\$1}")";
CURRENT_SRC_OBJECT_TYPE="$(
git ls-tree HEAD -- "${BASE_NAME}.in"
| awk "{print\$1}"
)";
echo "CURRENT_SRC_OBJECT_TYPE=${CURRENT_SRC_OBJECT_TYPE}";
if [[ "${GIT_INDEX_OBJECT_SYMLINK_TYPE}" !=
"${CURRENT_SRC_OBJECT_TYPE}" ]];
Expand Down Expand Up @@ -277,7 +282,8 @@ jobs:
&& format(' for {0}', github.event.inputs.package-distribuition)
|| ''
}}" requirements/
&& echo "::set-output name=patch::0001-Update-${BASE_NAME}-constraints.patch"
&& echo
"::set-output name=patch::0001-Update-${BASE_NAME}-constraints.patch"
|| :
shell: bash

Expand Down Expand Up @@ -437,10 +443,14 @@ jobs:
if: steps.artifacts.outputs.lockfile-updates-needed
run: git am '${{ runner.temp }}/patches'/*.patch
- name: Force-push the PR branch to remote
# ... with only the useful commits which will cause a `pull_request` `synchronize`
# event because of the SSH key
# ... with only the useful commits which will cause a `pull_request`
# `synchronize` event because of the SSH key
if: steps.artifacts.outputs.lockfile-updates-needed
run: git push --atomic origin 'HEAD:${{ env.git-branch }}' --force-with-lease
run: >-
git push
--atomic
origin 'HEAD:${{ env.git-branch }}'
--force-with-lease
- name: Enable auto-merge for the PR
if: steps.pr.outputs.pull_request_url
Expand Down
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ repos:
- id: double-quote-string-fixer
- id: end-of-file-fixer
# disabled because it doesn't make sense to change pip-tools-managed files
#- id: requirements-txt-fixer
# exclude: >-
# (?x)
# ^
# requirements/[^/]+.txt
# $
# files: >-
# (?x)
# ^
# requirements/[^/]+.in
# $
# - id: requirements-txt-fixer
# exclude: >-
# (?x)
# ^
# requirements/[^/]+.txt
# $
# files: >-
# (?x)
# ^
# requirements/[^/]+.in
# $

# Non-modifying checks:
- id: name-tests-test
Expand All @@ -58,7 +58,7 @@ repos:
- id: check-byte-order-marker
- id: check-case-conflict
# disabled due to pre-commit/pre-commit-hooks#159
#- id: check-docstring-first
# - id: check-docstring-first
- id: check-json
- id: check-symlinks
- id: check-yaml
Expand Down
10 changes: 7 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html
Expand All @@ -13,9 +15,9 @@ sphinx:
fail_on_warning: true

# Build documentation with MkDocs
#mkdocs:
# configuration: mkdocs.yml
# fail_on_warning: true
# mkdocs:
# configuration: mkdocs.yml
# fail_on_warning: true

# Optionally build your docs in additional formats
# such as PDF and ePub
Expand All @@ -40,3 +42,5 @@ python:
path: .
- requirements: requirements/tox-build-docs-cp310-linux-x86_64.txt
system_packages: false

...
4 changes: 4 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---

extends: default

rules:
indentation:
level: error
indent-sequences: false

...
4 changes: 4 additions & 0 deletions .zuul.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---

- job:
name: tox-pre-commit
parent: tox
Expand Down Expand Up @@ -97,3 +99,5 @@
- tox-spellcheck-docs
- tox-linkcheck-docs
- tox-pre-commit-failing

...

0 comments on commit 3f9b1cb

Please sign in to comment.