# pyproject.toml reference / quickstart: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html [build-system] requires = ["setuptools", "wheel"] build-backend = "setuptools.build_meta" [project] name = "flimder" authors = [ { name = "Eloi Zalczer", email = "eloi@zalczer.fr" }, ] description = "Find flims wherever they play" readme = "README.md" requires-python = ">=3.8" keywords = ["flimder"] dynamic = ["version"] dependencies = [ "requests==2.28.2", "beautifulsoup4==4.12.2", "flask-smorest==0.40.0", "Flask==2.2.3", "python-dotenv==0.17.1", "gunicorn", "toml", ] [tool.setuptools.dynamic] version = { attr = "flimder.__version__" } [tool.pytest.ini_options] minversion = "7.0" addopts = "--cov --cov-report=html --quiet -ra" # -ra --> report on all but "passed" testpaths = ["test"] python_files = ["test*.py"] python_functions = ["test*"] # coverage configuration reference: https://coverage.readthedocs.io/en/stable/config.html [tool.coverage.run] branch = true parallel = true include = ["src/*"] [tool.coverage.report] show_missing = true precision = 2 [tool.coverage.paths] source = [ "src/flimder", "*/site-packages/flimder", ] [tool.black] # black configuration reference: https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html line-length = 120 target-version = ["py37", "py38", "py39", "py310", "py311"] [tool.isort] # isort configuration reference: https://pycqa.github.io/isort/docs/configuration/options.html profile = "black" line_length = 120 src_paths = ["src", "tests"] [tool.pylint.format] max-line-length = 120