From 264192c1803f7476f380a5dd62b1058b4dd1ccc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Tue, 5 Mar 2024 08:10:50 +0100 Subject: [PATCH] pyproject.toml --- .coveragerc | 16 ---------------- .gitignore | 1 + .pylintrc | 10 ---------- pyproject.toml | 40 +++++++++++++++++++++++++++++++++------- pytest.ini | 3 --- 5 files changed, 34 insertions(+), 36 deletions(-) delete mode 100644 .pylintrc delete mode 100644 pytest.ini diff --git a/.coveragerc b/.coveragerc index 06cdc300..e69de29b 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,16 +0,0 @@ -[run] -branch=1 -source= - satella -concurrency=thread -omit= - tests/* - .eggs/* - setup.py - satella/__init__.py - satella/os/signals.py - -[report] -include= - satella/* - diff --git a/.gitignore b/.gitignore index 89b9ddbf..49bad4a9 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ ################# test*.json test*.txt +.pytest_cache .eggs satella.sublime* hs_err_pid*.log diff --git a/.pylintrc b/.pylintrc deleted file mode 100644 index 2de1d786..00000000 --- a/.pylintrc +++ /dev/null @@ -1,10 +0,0 @@ -[MASTER] -disable= - C0114, # missing-module-docstring - C0116, # missing-function-docstring - W0603, # global-statement - C0103, # invalid-name - R0913 # too-many-arguments - -[FORMAT] -max-line-length=110 diff --git a/pyproject.toml b/pyproject.toml index 59b7acb1..ff494f75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,13 +4,7 @@ dynamic = ["version"] description = "Utilities for writing servers in Python" readme = {file = "README.md", content-type="text/markdown"} authors = [ - {name = "Piotr MaĹlanka", email = "pmaslanka@smok.co"}, - {name = "Tzu-Ping Chung", email = "tzu-ping@example.com"}, - {name = "Another person"}, - {email = "different.person@example.com"}, -] -maintainers = [ - {name = "Brett Cannon", email = "brett@example.com"} + {name = "Piotr MaĹlanka", email = "pmaslanka@smok.co"} ] requires-python = ">= 3.5" license = {file = "LICENSE", text="MIT License"} @@ -85,3 +79,35 @@ packages = ["satella", "satella.opentracing", "satella.os", "satella.time"] + +[tool.pytest] +log_cli = true + +[tool.pylint.format] +max-line-length = 120 + +[tool.pylint.MASTER] +disable = ''' + missing-module-docstring, + missing-class-docstring, + missing-function-docstring, + global-statement, + invalid-name, + too-many-arguments +''' + +[tool.coverage.run] +branch=1 +source= ["satella"] +concurrency="thread" +omit= [ + "tests/*", + ".eggs/*", + "setup.py", + "satella/__init__.py", + "satella/os/signals.py"] + +[report] +include=[ + "satella/*"] + diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index 20341273..00000000 --- a/pytest.ini +++ /dev/null @@ -1,3 +0,0 @@ -[pytest] -log_cli = true - -- GitLab