Files
predictify/.pre-commit-config.yaml
Dominik ff9d726b47 Feat/import gdrp data (#26)
* Some simple code for extracting data from the jsons

* Jupiter Notebook

* Mac specific gitignore

* Fixed finding paths to floders

* Delete src/gdpr_data directory

* Updated gitignore to include my testing file

* Added the standard saving path for the database in the database handler, this way multiple files dont have to be updated when moving database position

* Moved the API usage wrappers into an own file, added a function for getting multiple track_ids at once, this still needs to be tested more

* Further code for extracting data from the gdpr files

* Forgor

* Final&Tested version of get_multiple_tracks_information endpoint

* Further functionality: The code now extracts the id of each listened song and makes a api call to get info about these songs via the multiple tracks api. Furthermore we track the songs witch the call is made for already and skip these

* Added function to map catalouged ids into the play history

* Added args parser to runtime program, cleaned up some code

* Fixed a bug where the database would always try to create tables, eaven if it exists

* Added some small text for clean interface

* Some final fixes to actual code, fixed db bug, reversed the order of database entries

* Some documentation

* Added -export args to docker runtime

* fix
2025-03-23 18:48:57 +01:00

50 lines
1.3 KiB
YAML

# .pre-commit-config.yaml
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace # Remove trailing whitespace
exclude: '.*test.*'
files: \.(py)$
- id: end-of-file-fixer # Ensure a single newline at the end of a file
exclude: '.*test.*'
files: \.(py)$
- id: check-yaml # Check if the YAML files are valid
exclude: '.*test.*'
files: \.(yaml|yml)$
- id: check-json # Check if the JSON files are valid
exclude: '.*test.*'
files: \.(json)$
- id: check-added-large-files # Prevent large files from being committed
args: ['--maxkb=2000']
- id: check-ast # Check for parse errors in Python files
exclude: '.*test.*'
files: \.(py)$
- id: debug-statements # Check for print statements and pdb calls
exclude: '.*test.*'
files: \.(py)$
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ['--profile=black']
files: \.(py)$
exclude: '.*test.*'
- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
hooks:
- id: flake8
args: ['--extend-ignore=E501,E402,W503,E721','--max-line-length=100']
files: \.(py)$
exclude: '.*test.*'