Browse Source
This adds no new code linters or formatters, but ensures that flake8 (and some minor others) are run using pre-commit.ci on each PR. That's very fast and fixes problems in-PR, not requiring review turnarounds. Additionally we get more stable linters via version pinning for free. The updates are capped to once per month to prevent unnecessary churn. Since flake8 now runs over the whole code base, I've added a few noqas where it made sense.pull/381/head

14 changed files with 29 additions and 24 deletions
@ -1,7 +1,26 @@
|
||||
--- |
||||
ci: |
||||
autoupdate_schedule: monthly |
||||
|
||||
repos: |
||||
- repo: https://github.com/asottile/pyupgrade |
||||
rev: v2.31.1 |
||||
hooks: |
||||
- id: pyupgrade |
||||
args: [--py37-plus] |
||||
|
||||
- repo: https://github.com/PyCQA/flake8 |
||||
rev: 4.0.1 |
||||
hooks: |
||||
- id: flake8 |
||||
language_version: python3.10 |
||||
exclude: docs/code_examples |
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks |
||||
rev: v4.1.0 |
||||
hooks: |
||||
- id: trailing-whitespace |
||||
- id: end-of-file-fixer |
||||
- id: debug-statements |
||||
- id: check-toml |
||||
- id: check-yaml |
||||
|
@ -1 +1 @@
|
||||
Move docs too master branch and document custom fragment types. |
||||
Move docs too master branch and document custom fragment types. |
||||
|
@ -1,2 +1,2 @@
|
||||
Added support to tables in toml settings, which provides a more intuitive |
||||
way to configure custom types. |
||||
way to configure custom types. |
||||
|
Loading…
Reference in new issue