From bd1b5b46d1126181d5d5fb4248bfc4960d92dde3 Mon Sep 17 00:00:00 2001 From: William Bergamin Date: Wed, 21 Feb 2024 10:27:42 -0500 Subject: [PATCH] feat: consolidate to pyproject.toml (#29) * consolidate to the pyproject.toml * clean up comments * Update .flake8 --- .flake8 | 3 ++- pyproject.toml | 11 ++++++++--- pytest.ini | 7 ------- setup.cfg | 3 --- 4 files changed, 10 insertions(+), 14 deletions(-) delete mode 100644 pytest.ini delete mode 100644 setup.cfg diff --git a/.flake8 b/.flake8 index 308e748..3a986c2 100644 --- a/.flake8 +++ b/.flake8 @@ -1,2 +1,3 @@ [flake8] -max-line-length = 125 \ No newline at end of file +max-line-length = 125 +exclude = .gitignore,venv diff --git a/pyproject.toml b/pyproject.toml index 0cda914..b007a65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,4 +1,9 @@ -# black project prefers pyproject.toml -# that's why we have this file in addition to other setting files [tool.black] -line-length = 125 \ No newline at end of file +line-length = 125 + +[tool.pytest.ini_options] +testpaths = ["tests"] +log_file = "logs/pytest.log" +log_file_level = "DEBUG" +log_format = "%(asctime)s %(levelname)s %(message)s" +log_date_format = "%Y-%m-%d %H:%M:%S" diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index c5af159..0000000 --- a/pytest.ini +++ /dev/null @@ -1,7 +0,0 @@ -# Copyright 2022, Slack Technologies, LLC. All rights reserved. - -[pytest] -log_file = logs/pytest.log -log_file_level = DEBUG -log_format = %(asctime)s %(levelname)s %(message)s -log_date_format = %Y-%m-%d %H:%M:%S \ No newline at end of file diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index d2a0684..0000000 --- a/setup.cfg +++ /dev/null @@ -1,3 +0,0 @@ -[flake8] -exclude = .gitignore,venv -max-line-length = 125 \ No newline at end of file