From 4e12e6717e992ddd903b4dd9b2aae0433abb2483 Mon Sep 17 00:00:00 2001 From: ParkSuMin Date: Tue, 7 Jan 2025 20:42:20 +0000 Subject: [PATCH] pre-commit tool --- .pre-commit-config.yaml | 11 +++++++++++ parser/requirements.txt | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..63f1b24d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.8.0 + hooks: + - id: ruff + args: [ --fix ] + - id: ruff-format + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort \ No newline at end of file diff --git a/parser/requirements.txt b/parser/requirements.txt index d25f1dae..b5cb0f06 100644 --- a/parser/requirements.txt +++ b/parser/requirements.txt @@ -1,3 +1,3 @@ bs4==0.0.2 -requests==2.32.3 - +pre_commit==4.0.1 +requests==2.32.3 \ No newline at end of file