Skip to content

Commit

Permalink
fix: onaxis is not necessarily flat, change plot accordingly, still m…
Browse files Browse the repository at this point in the history
…issing slope/sm on graphs
  • Loading branch information
pierreaubert committed Jan 8, 2025
1 parent 58d9fc3 commit ee315b6
Show file tree
Hide file tree
Showing 6 changed files with 133 additions and 132 deletions.
5 changes: 5 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[flake8]
extend-ignore = E203
exclude = .git,__pycache__,docs,build,dist,venv,data,datas
max-complexity = 25
max-line-length = 100
27 changes: 18 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ repos:
- id: detect-private-key
- id: fix-encoding-pragma
- id: requirements-txt-fixer
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
#- repo: https://github.com/PyCQA/flake8
# rev: 7.1.1
# hooks:
# - id: flake8
# args: [--max-line-length=100 --exclude 'metadata_*.py']
# stages: [pre-commit, pre-push]
- repo: https://github.com/pre-commit/mirrors-csslint
rev: v1.0.5
hooks:
- id: csslint
stages: [pre-commit, pre-push]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v9.17.0' # Use the sha / tag you want to point at
hooks:
Expand All @@ -28,13 +31,19 @@ repos:
- eslint
- eslint-loader
- eslint-prettier
stages: [pre-commit, pre-push]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v4.0.0-alpha.8' # Use the sha / tag you want to point at
hooks:
- id: prettier
types_or: [javascript]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.8.5'
hooks:
- id: ruff
stages: [pre-commit, pre-push]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.8.5' # version
hooks:
- id: ruff
types_or: [ python, pyi ]
stages: [pre-commit, pre-push]
- id: ruff-format
types_or: [ python, pyi ]
stages: [pre-commit, pre-push]
3 changes: 1 addition & 2 deletions datas/metadata_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,7 @@
"misc-ageve": {
"origin": "Misc",
"format": "spl_hv_txt",
"quality": "low",
"quality": "low",
"reviews": {
"asr": "https://www.audiosciencereview.com/forum/index.php?threads/dynavoice-definition-dc-5-spinorama-measurements-cta-2034.59794/#post-2188105",
},
Expand All @@ -2113,5 +2113,4 @@
},
},
},

}
64 changes: 16 additions & 48 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,62 +24,30 @@ typeCheckingMode = 'basic'
pythonVersion = "3.12"
pythonPlatform = "Linux"

[tool.flake8]
max-line-length = 100
exclude = [
".git",
"__pycache__",
"datas/measurements",
"docs",
"build"
]
extend-ignore = [
"E203"
]

[tool.ruff]
line-length = 100

# F Pyflakes
# E/W pycodestyle
# C90 mccabe
# I isort
# N pep8-naming
# D pydocstyle
# UP pyupgrade
# YTT flake8-2020
# ANN flake8-annotations
# S flake8-bandit
# BLE flake8-blind-except
# FBT flake8-boolean-trap
# B flake8-bugbear
# A flake8-builtins
# COM flake8-commas
# C4 flake8-comprehensions
# DTZ flake8-datetimez
# T10 flake8-debugger
# DJ flake8-django
# EM flake8-errmsg
# EXE flake8-executable
# ISC flake8-implicit-str-concat
# ICN flake8-import-conventions
# G flake8-logging-format
# INP flake8-no-pep420
# PIE flake8-pie
# T20 flake8-print
# PYI flake8-pyi
# PT flake8-pytest-style
# Q flake8-quotes
# RSE flake8-raise
# RET flake8-return
# SLF flake8-self
# SIM flake8-simplify
# TID flake8-tidy-imports
# TCH flake8-type-checking
# ARG flake8-unused-arguments
# PTH flake8-use-pathlib
# ERA eradicate
# PD pandas-vet
# PGH pygrep-hooks
# PL Pylint
# TRY tryceratops
# NPY NumPy-specific rules
# RUF Ruff-specific rules

lint.select = ["F", "N", "YTT", "S", "B", "FBT", "EM", "ISC", "EXE", "G", "Q", "T20", "SIM", "PD", "PL", "TRY", "NPY", "RUF"]
lint.select = ["N", "YTT", "S", "B", "FBT", "EM", "ISC", "EXE", "G", "Q", "T20", "SIM", "PD", "PL", "TRY", "NPY", "RUF"]
lint.ignore = [
"PLR",
"T20",
"ISC001",
"FBT001",
]

# Allow autofix for all enabled rules (when `--fix`) is provided.
lint.fixable = ["F", "N", "YTT", "S", "B", "FBT", "EM", "ISC", "EXE", "G", "Q", "T20", "SIM", "PD", "PL", "TRY", "NPY", "RUF"]
lint.fixable = ["N", "YTT", "S", "B", "FBT", "EM", "ISC", "EXE", "G", "Q", "T20", "SIM", "PD", "PL", "TRY", "NPY", "RUF"]
lint.unfixable = []
Loading

0 comments on commit ee315b6

Please sign in to comment.