Skip to content

Commit

Permalink
precommit: enable prettier for YAML
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Feb 2, 2024
1 parent 3dbc43f commit 160136b
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
codecov:
notify:
require_ci_to_pass: yes
require_ci_to_pass: yes

coverage:
precision: 2
Expand All @@ -10,7 +10,7 @@ coverage:
status:
patch:
default:
target: '80'
target: "80"
project: false

comment:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
python-version: ["3.10"]
os: [ubuntu-latest]

steps:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
# min hours day(month) month day(week)
- cron: '0 0 * * 0'
# * is a special character in YAML so you have to quote this string
# min hours day(month) month day(week)
- cron: "0 0 * * 0"

jobs:
test:
Expand All @@ -16,9 +16,9 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macOS-latest, windows-latest]
backend: ['local', 'db']
backend: ["local", "db"]

steps:
- uses: actions/[email protected]
Expand Down
47 changes: 23 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,32 @@ repos:
args: []
exclude: versioneer.py

# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5
# hooks:
# - id: docformatter
# additional_dependencies: [tomli]
# args: ["--in-place"]
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5
# hooks:
# - id: docformatter
# additional_dependencies: [tomli]
# args: ["--in-place"]

# - repo: https://github.com/psf/black-pre-commit-mirror
# rev: 24.1.1
# hooks:
# - id: black
# name: Format code
# args:
# - "--skip-string-normalization"
# - repo: https://github.com/psf/black-pre-commit-mirror
# rev: 24.1.1
# hooks:
# - id: black
# name: Format code
# args:
# - "--skip-string-normalization"

# todo: unify formatting all GH actions files
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v3.1.0
# hooks:
# - id: prettier
# # https://prettier.io/docs/en/options.html#print-width
# args: ["--print-width=120"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
# https://prettier.io/docs/en/options.html#print-width
args: ["--print-width=120"]

# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.8.0
# hooks:
# - id: mypy
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v1.8.0
# hooks:
# - id: mypy

- repo: https://github.com/pycqa/flake8
rev: 7.0.0
Expand Down

0 comments on commit 160136b

Please sign in to comment.