Skip to content

Commit

Permalink
pre-commit-config update
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 19, 2024
1 parent 4c7e19f commit 4bfd5c0
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
16 changes: 11 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ exclude: |
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
Expand Down Expand Up @@ -62,7 +62,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.14"
rev: "v0.4.1"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down Expand Up @@ -90,17 +90,23 @@ repos:
# - id: mypy

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.38.0
rev: v0.39.0
hooks:
- id: markdownlint
args: ["--disable", "MD013"]

# # code spell check via cspell
# code spell check via cspell
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v8.3.0
rev: v8.7.0
hooks:
- id: cspell

# CRLF -> LF
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf

# # Perl
# - repo: https://github.com/henryykt/pre-commit-perl
# rev: v0.0.5
Expand Down
10 changes: 7 additions & 3 deletions .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ fix = true # auto-fix findings
line-length = 88 # same as Black
target-version = "py310" # Python 3.10

[lint]
# comment this out to use only default rules (["E4", "E7", "E9", "F"])
select = ["ALL"] # activate all rules
# select = ["E4", "E7", "E9", "F"] # these are the defaults

# add some more rules to include
# extend-select = ["B", "Q", "E", "W"]

# rule not to apply
extend-ignore = [
"COM812", # missing-trailing-comma,
"D200", # fits-on-one-line"
Expand All @@ -21,8 +26,7 @@ extend-ignore = [
"TD003", # missing-todo-link
]

[lint]

[format]
line-ending = "lf" # force lf
preview = false # enable the unstable preview style formatting
preview = false # enable unstable preview style formatting
1 change: 1 addition & 0 deletions 1fetch_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
set the start date in config.json
fetched data is stored in data/
"""

# standard modules
import json
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions 2analyze_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
a sleep_report.txt is generated
some charts of correlating data are generated in plot/
"""

import json
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions api-v1/1fetch_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
set the start date in config.json
fetched data is stored in data/
"""

# standard modules
import json
import os
Expand Down
1 change: 1 addition & 0 deletions api-v1/2analyze_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
a sleep_report.txt is generated
some charts of correlating data are generated in plot/
"""

import json
import os

Expand Down

0 comments on commit 4bfd5c0

Please sign in to comment.