From 23b47bc92c2fd214104f6d1d78abe29ae16ef8dd Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sun, 24 Nov 2024 18:47:15 +0100 Subject: [PATCH] Introduced pyproject, ruff; applied ruff formatting --- pyproject.toml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..f60991b --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,65 @@ +[build-system] +requires = ["setuptools>=61.0"] +build-backend = "setuptools.build_meta" + +[project] +name = "nsapi" +version = "3.1.1" +authors = [ + {name = "Michiel Scholten", email = "michiel@diginaut.net"}, +] +description="api wrapper for Dutch Railways (NS)" +readme = "README.rst" +requires-python = ">=3.8" +keywords = ["api", "automation", "public transport"] +license = {text = "MIT"} +classifiers = [ + "Topic :: Software Development :: Libraries", + "Development Status :: 5 - Production/Stable", + "Intended Audience :: Developers", + "License :: OSI Approved :: MIT License", + "Programming Language :: Python :: 3", +] +dependencies = [ + "pytz>2018.5", + "future", +] +# dynamic = ["version"] + +[project.urls] +"Homepage" = "https://github.com/aquatix/ns-api/" +"Bug Tracker" = "https://github.com/aquatix/ns-api/issues" + +[tool.ruff] +exclude = [ + ".git", + "__pycache__", + "docs/source/conf.py", + "build", + "dist", +] +line-length = 120 + +[tool.ruff.format] +# Use single quotes for non-triple-quoted strings. +quote-style = "single" + +[tool.ruff.lint] +ignore = ["D203", "D213"] +select = [ + "C9", + "D", + "E", + "F", + "I", + "W", +] + +[tool.ruff.lint.isort] +section-order = ["future", "standard-library","third-party", "first-party", "testing", "local-folder"] + +[tool.ruff.lint.isort.sections] +testing = ["tests"] + +[tool.ruff.lint.mccabe] +max-complexity = 10