diff --git a/.flake b/.flake new file mode 100644 index 0000000..8dd399a --- /dev/null +++ b/.flake @@ -0,0 +1,3 @@ +[flake8] +max-line-length = 88 +extend-ignore = E203 diff --git a/.idea/dictionaries/junos.xml b/.idea/dictionaries/junos.xml new file mode 100644 index 0000000..19dbd95 --- /dev/null +++ b/.idea/dictionaries/junos.xml @@ -0,0 +1,3 @@ + + + diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..a76a913 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,21 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + name: isort (python) + - repo: https://github.com/pycqa/flake8 + rev: 6.0.0 + hooks: + - id: flake8 + - repo: https://github.com/psf/black + rev: 23.3.0 + hooks: + - id: black + language_version: python3 diff --git a/config/environment.yml b/config/environment.yml index cf233ac..26eb247 100644 --- a/config/environment.yml +++ b/config/environment.yml @@ -14,6 +14,7 @@ dependencies: - nodejs - pandas - psycopg2 >= 2.9.1 + - pre-commit - python-dotenv - pytz - pyprojroot @@ -23,4 +24,4 @@ dependencies: - sqlalchemy - statsmodels - tabulate - - xgboost \ No newline at end of file + - xgboost diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..0f5661b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,7 @@ +[tool.isort] +profile = "black" +py_version = 311 +skip_gitignore = "true" + +[tool.black] +target-version = ["py311"]