|
| 1 | +[build-system] |
| 2 | +build-backend = "setuptools.build_meta" |
| 3 | +requires = [ |
| 4 | + "setuptools", |
| 5 | +] |
| 6 | + |
| 7 | +[project] |
| 8 | +authors = [ |
| 9 | + {name = "Erkan Özgür Yılmaz", email = "eoyilmaz@gmail.com"}, |
| 10 | +] |
| 11 | +classifiers = [ |
| 12 | + "Development Status :: 5 - Production/Stable", |
| 13 | + "Environment :: MacOS X", |
| 14 | + "Environment :: Win32 (MS Windows)", |
| 15 | + "Environment :: X11 Applications", |
| 16 | + "Intended Audience :: End Users/Desktop", |
| 17 | + "Operating System :: OS Independent", |
| 18 | + "Programming Language :: Python", |
| 19 | + "Programming Language :: Python :: 3.9", |
| 20 | + "Programming Language :: Python :: 3.10", |
| 21 | + "Programming Language :: Python :: 3.11", |
| 22 | + "Programming Language :: Python :: 3.12", |
| 23 | + "Programming Language :: Python :: 3.13", |
| 24 | + "Programming Language :: Python :: 3.14", |
| 25 | + "Topic :: Software Development :: Libraries :: Python Modules", |
| 26 | +] |
| 27 | +description = "SMPTE Time Code Manipulation Library" |
| 28 | +dynamic = ["version"] |
| 29 | +keywords = ["video", "timecode", "smpte"] |
| 30 | +license = "MIT" |
| 31 | +maintainers = [ |
| 32 | + {name = "Erkan Özgür Yılmaz", email = "eoyilmaz@gmail.com"}, |
| 33 | +] |
| 34 | +name = "timecode" |
| 35 | +readme = "README.md" |
| 36 | +requires-python = ">= 3.9" |
| 37 | + |
| 38 | +[project.urls] |
| 39 | +"Home Page" = "https://github.com/eoyilmaz/timecode" |
| 40 | +GitHub = "https://github.com/eoyilmaz/timecode" |
| 41 | +Repository = "https://github.com/eoyilmaz/timecode.git" |
| 42 | +Download = "https://github.com/eoyilmaz/timecode/releases/" |
| 43 | + |
| 44 | +[tool.distutils.bdist_rpm] |
| 45 | +doc-files = "LICENSE README.md" |
| 46 | +fix-python = 1 |
| 47 | +packager = "Erkan Ozgur Yilmaz <eoyilmaz@gmail.com>" |
| 48 | +release = 1 |
| 49 | + |
| 50 | +[tool.distutils.bdist_wheel] |
| 51 | +universal = 0 |
| 52 | + |
| 53 | +[tool.distutils.install] |
| 54 | +record = "INSTALLED_FILES" |
| 55 | + |
| 56 | +[tool.setuptools] |
| 57 | +include-package-data = false |
| 58 | + |
| 59 | +[tool.setuptools.packages.find] |
| 60 | +where = ["./src"] |
| 61 | + |
| 62 | +[tool.setuptools.package-data] |
| 63 | +timecode = [ |
| 64 | + "LICENSE", |
| 65 | + "src/timecode/py.typed", |
| 66 | + "README.md", |
| 67 | + "VERSION", |
| 68 | +] |
| 69 | + |
| 70 | +[tool.setuptools.exclude-package-data] |
| 71 | +DisplayCAL = [ |
| 72 | + "docs", |
| 73 | + "tests", |
| 74 | + "tests/__pycache__" |
| 75 | +] |
| 76 | + |
| 77 | +[tool.setuptools.dynamic] |
| 78 | +dependencies = { file = ["requirements.txt"] } |
| 79 | +optional-dependencies.test = { file = ["requirements-dev.txt"] } |
| 80 | +version = { file = ["VERSION"] } |
| 81 | + |
| 82 | +[tool.black] |
| 83 | +line-length = 88 |
| 84 | + |
| 85 | +[tool.flake8] |
| 86 | +exclude = [ |
| 87 | + "__pycache__", |
| 88 | + ".coverage", |
| 89 | + ".DS_Store", |
| 90 | + ".github", |
| 91 | + ".pytest_cache", |
| 92 | + ".ruff_cache", |
| 93 | + ".venv", |
| 94 | + ".vscode", |
| 95 | + "build", |
| 96 | + "dist", |
| 97 | + "docs", |
| 98 | + "INSTALLED_FILES", |
| 99 | + "MANIFEST.in", |
| 100 | + "tests", |
| 101 | + "timecode.egg-info", |
| 102 | + "VERSION", |
| 103 | +] |
| 104 | +extend-select = ["B950"] |
| 105 | +ignore = ["D107", "E203", "E501", "E701", "SC200", "W503"] |
| 106 | +max-complexity = 12 |
| 107 | +max-line-length = 80 |
| 108 | +per-file-ignores = [ |
| 109 | + "DisplayCAL/lib/agw/fmresources.py: B950" |
| 110 | +] |
| 111 | + |
| 112 | +[tool.ruff.lint] |
| 113 | +select = [ |
| 114 | + "A", # flake8-builtins |
| 115 | + "ANN", # flake-annotations |
| 116 | + "ASYNC", # flake-async |
| 117 | + "B", # flake8-bugbear |
| 118 | + "C", # McCabe complexity |
| 119 | + "C4", # flake8-comprehensions |
| 120 | + "COM", # flake8-commas |
| 121 | + "D", # pydocstyle |
| 122 | + "E", # pycodestyle |
| 123 | + "F", # Pyflakes |
| 124 | + "FA", # flake8-future-annotations |
| 125 | + "FLY", # flynt |
| 126 | + "I", # isort |
| 127 | + "INT", # flake8-gettext |
| 128 | + "ISC", # flake8-implicit-str-concat |
| 129 | + "LOG", # flake8-logging |
| 130 | + "N", # PEP8 Naming |
| 131 | + "NPY", # NumPy-specific rules |
| 132 | + "PERF", # perflint |
| 133 | + "PIE", # flake8-pie |
| 134 | + "PLR", # Pylint - Refactor |
| 135 | + "PYI", # flake8-pyi |
| 136 | + "RET", # flake8-return |
| 137 | + "RSE", # flake8-raise |
| 138 | + "RUF", # Ruff-specific-rules |
| 139 | + "Q", # flake8-quotes |
| 140 | + "S", # flake-bandit |
| 141 | + "SIM", # flake8-simplify |
| 142 | + "SLOT", # flake8-slots |
| 143 | + "T10", # flake8-debugger |
| 144 | + "TC", # flake8-type-checking |
| 145 | + "TID", # flake8-tidy-imports |
| 146 | + "UP", # pyupgrade |
| 147 | + "YTT", # flake-2020 |
| 148 | + |
| 149 | +] |
| 150 | +extend-ignore = [ |
| 151 | + "ANN002", # missing type annotations args |
| 152 | + "ANN003", # missing type annotations kwargs |
| 153 | + "COM812", # flake8-commas |
| 154 | + "D104", # Missing docstring in in publish package |
| 155 | + "D107", # skip docstring for __init__ |
| 156 | + "D203", # Incorrect blank line before class |
| 157 | + "D209", # New line after last paragraph in docstring |
| 158 | + "D213", # Multiline docstring summary second line |
| 159 | + "D412", # Bland line between header and content |
| 160 | + "D416", # Missing section name colon |
| 161 | + "E741", # Ambiguous variable name |
| 162 | + "E402", # Module level import not at top of file |
| 163 | + "PLR0911", # Too many return statements |
| 164 | + "PLR0912", # Too many branches |
| 165 | + "PLR0913", # Too many arguments |
| 166 | + "PLR0914", # Too many local variables |
| 167 | + "PLR0915", # Too many statements |
| 168 | + "PLR2004", # Magic value comparison |
| 169 | + "PERF203", # Try..except in loop, TODO: Re-enable this later on... |
| 170 | + "RUF100", # Unused noqa |
| 171 | + "S105", # Hardcoded password |
| 172 | + "S110", # try..except..pass |
| 173 | + "S603", # Subprocess without shell=True |
| 174 | +] |
| 175 | + |
| 176 | +[tool.ruff.lint.mccabe] |
| 177 | +max-complexity = 12 |
| 178 | + |
| 179 | +[tool.ruff.lint.pydocstyle] |
| 180 | +convention = "google" |
| 181 | + |
| 182 | +[tool.pytest.ini_options] |
| 183 | +pythonpath = [ |
| 184 | + ".", |
| 185 | +] |
| 186 | + |
| 187 | +[tool.tox] |
| 188 | +requires = ["tox>=4.23.2"] |
| 189 | +env_list = ["3.9", "3.10", "3.11", "3.12", "3.13"] |
| 190 | + |
| 191 | +[tool.tox.env_run_base] |
| 192 | +description = "run the tests with pytest" |
| 193 | +package = "wheel" |
| 194 | +wheel_build_env = ".pkg" |
| 195 | +deps = [ |
| 196 | + "pytest>=6", |
| 197 | + "pytest-cov", |
| 198 | + "pytest-xdist", |
| 199 | +] |
| 200 | +commands = [ |
| 201 | + ["pytest"], |
| 202 | +] |
| 203 | + |
| 204 | +[tool.mypy] |
0 commit comments