| 1 |
[project] |
| 2 |
name = "Decopy" |
| 3 |
version = "0.3.3" |
| 4 |
authors = [{ name = "Maximiliano Curia", email = "[email protected]" }] |
| 5 |
description = "Automatic debian/copyright Generator" |
| 6 |
readme = "README.md" |
| 7 |
requires-python = ">=3.12,<4" |
| 8 |
classifiers = [ |
| 9 |
'Environment :: Console', |
| 10 |
'Programming Language :: Python :: 3', |
| 11 |
'Operating System :: POSIX :: Linux', |
| 12 |
'License :: OSI Approved :: ISC License (ISCL)', |
| 13 |
] |
| 14 |
license = "ISC" |
| 15 |
dependencies = ["python-debian", "tqdm", "pyxdg", "regex"] |
| 16 |
|
| 17 |
[project.urls] |
| 18 |
Homepage = "https://salsa.debian.org/debian/decopy" |
| 19 |
Repository = "https://salsa.debian.org/debian/decopy.git" |
| 20 |
"Bug Tracker" = "https://salsa.debian.org/debian/decopy/-/issues" |
| 21 |
Changelog = "https://salsa.debian.org/debian/decopy/-/blob/debian/master/debian/changelog" |
| 22 |
|
| 23 |
[project.scripts] |
| 24 |
decopy = "decopy.decopy:main" |
| 25 |
|
| 26 |
[project.optional-dependencies] |
| 27 |
zstd = ["zipfile-zstd>=0.0.4; python_version < '3.14'"] |
| 28 |
prefilter = ["pyahocorasick>=1.4.1"] |
| 29 |
gitignore = ["pathspec>=1.0.4"] |
| 30 |
[build-system] |
| 31 |
requires = ["hatchling"] |
| 32 |
build-backend = "hatchling.build" |
| 33 |
|
| 34 |
[tool.hatch.build.targets.sdist] |
| 35 |
exclude = ["/debian"] |
| 36 |
|
| 37 |
# The shipped licence-text data (decopy/licensing/data/**: the headers/, |
| 38 |
# licenses/, exceptions/ .txt files and common_licenses_index.txt) needs no |
| 39 |
# explicit include: hatchling ships every non-.py file inside the decopy |
| 40 |
# package by default. Do NOT add a wheel `include` glob for the data alone - |
| 41 |
# that switches hatchling to only-include and would drop the .py modules. |
| 42 |
# Verified in the built sdist and wheel (S5.3). |
| 43 |
|
| 44 |
[tool.hatch.envs.test] |
| 45 |
dependencies = ["pytest"] |
| 46 |
|
| 47 |
[tool.ruff] |
| 48 |
target-version = "py312" |
| 49 |
|
| 50 |
[tool.ruff.lint] |
| 51 |
select = [ |
| 52 |
# Pyflakes [Pyflakes](https://pypi.org/project/pyflakes/) |
| 53 |
"F", |
| 54 |
# Pycodestyle [pycodestyle](https://pypi.org/project/pycodestyle/) |
| 55 |
"E", |
| 56 |
"W", |
| 57 |
# Isort [isort](https://pypi.org/project/isort/) |
| 58 |
"I", |
| 59 |
# Pyupgrade [pyupgrade](https://pypi.org/project/pyupgrade/) |
| 60 |
"UP", |
| 61 |
# Flake8Bugbear [flake8-bugbear](https://pypi.org/project/flake8-bugbear/) |
| 62 |
"B", |
| 63 |
# Flake8Simplify [flake8-simplify](https://pypi.org/project/flake8-simplify/) |
| 64 |
"SIM", |
| 65 |
# Flake82020 [flake8-2020](https://pypi.org/project/flake8-2020/) |
| 66 |
"YTT", |
| 67 |
# Flake8Async [flake8-async](https://pypi.org/project/flake8-async/) |
| 68 |
"ASYNC", |
| 69 |
# Flake8BooleanTrap [flake8-boolean-trap](https://pypi.org/project/flake8-boolean-trap/) |
| 70 |
"FBT", |
| 71 |
# Flake8Comprehensions [flake8-comprehensions](https://pypi.org/project/flake8-comprehensions/) |
| 72 |
"C4", |
| 73 |
# Flake8Datetimez [flake8-datetimez](https://pypi.org/project/flake8-datetimez/) |
| 74 |
"DTZ", |
| 75 |
# Flake8Debugger [flake8-debugger](https://pypi.org/project/flake8-debugger/) |
| 76 |
"T10", |
| 77 |
# Flake8Django [flake8-django](https://pypi.org/project/flake8-django/) |
| 78 |
"DJ", |
| 79 |
# Flake8ErrMsg [flake8-errmsg](https://pypi.org/project/flake8-errmsg/) |
| 80 |
"EM", |
| 81 |
# Flake8FutureAnnotations [flake8-future-annotations](https://pypi.org/project/flake8-future-annotations/) |
| 82 |
"FA", |
| 83 |
# Flake8ImportConventions [flake8-import-conventions](https://github.com/joaopalmeiro/flake8-import-conventions) |
| 84 |
"ICN", |
| 85 |
# Flake8LoggingFormat [flake8-logging-format](https://pypi.org/project/flake8-logging-format/) |
| 86 |
"G", |
| 87 |
# Flake8Pie [flake8-pie](https://pypi.org/project/flake8-pie/) |
| 88 |
"PIE", |
| 89 |
# Flake8Pyi [flake8-pyi](https://pypi.org/project/flake8-pyi/) |
| 90 |
"PYI", |
| 91 |
# Flake8PytestStyle [flake8-pytest-style](https://pypi.org/project/flake8-pytest-style/) |
| 92 |
# "PT", |
| 93 |
# Flake8Quotes [flake8-quotes](https://pypi.org/project/flake8-quotes/) |
| 94 |
"Q", |
| 95 |
# Flake8Raise [flake8-raise](https://pypi.org/project/flake8-raise/) |
| 96 |
"RSE", |
| 97 |
# Flake8Return [flake8-return](https://pypi.org/project/flake8-return/) |
| 98 |
"RET", |
| 99 |
# PandasVet [pandas-vet](https://pypi.org/project/pandas-vet/) |
| 100 |
"PD", |
| 101 |
# Numpy NumPy-specific rules |
| 102 |
"NPY", |
| 103 |
# Perflint [Perflint](https://pypi.org/project/perflint/) |
| 104 |
"PERF", |
| 105 |
# Flake8Logging [flake8-logging](https://pypi.org/project/flake8-logging/) |
| 106 |
"LOG", |
| 107 |
# Ruff Ruff-specific rules |
| 108 |
"RUF", |
| 109 |
|
| 110 |
# McCabe [mccabe](https://pypi.org/project/mccabe/) |
| 111 |
"C90", |
| 112 |
# PEP8Naming [pep8-naming](https://pypi.org/project/pep8-naming/) |
| 113 |
"N", |
| 114 |
# Flake8Bandit [flake8-bandit](https://pypi.org/project/flake8-bandit/) |
| 115 |
"S", |
| 116 |
# Flake8Todos [flake8-todos](https://github.com/orsinium-labs/flake8-todos/) |
| 117 |
"TD", |
| 118 |
|
| 119 |
# Flake8Self [flake8-self](https://pypi.org/project/flake8-self/) |
| 120 |
"SLF", |
| 121 |
# Flake8Slots [flake8-slots](https://pypi.org/project/flake8-slots/) |
| 122 |
"SLOT", |
| 123 |
# Flake8TidyImports [flake8-tidy-imports](https://pypi.org/project/flake8-tidy-imports/) |
| 124 |
"TID", |
| 125 |
# Flake8GetText [flake8-gettext](https://pypi.org/project/flake8-gettext/) |
| 126 |
"INT", |
| 127 |
# Flake8UsePathlib [flake8-use-pathlib](https://pypi.org/project/flake8-use-pathlib/) |
| 128 |
"PTH", |
| 129 |
# PygrepHooks [pygrep-hooks](https://github.com/pre-commit/pygrep-hooks) |
| 130 |
"PGH", |
| 131 |
# Tryceratops [tryceratops](https://pypi.org/project/tryceratops/) |
| 132 |
"TRY", |
| 133 |
# Flynt [flynt](https://pypi.org/project/flynt/) |
| 134 |
"FLY", |
| 135 |
# Airflow [Airflow](https://pypi.org/project/apache-airflow/) |
| 136 |
"AIR", |
| 137 |
# FastAPI [FastAPI](https://pypi.org/project/fastapi/) |
| 138 |
"FAST", |
| 139 |
# Refurb [refurb](https://pypi.org/project/refurb/) |
| 140 |
"FURB", |
| 141 |
# Flake8Copyright [flake8-copyright](https://pypi.org/project/flake8-copyright/) |
| 142 |
# "CPY", |
| 143 |
# Flake8ImplicitStrConcat [flake8-implicit-str-concat](https://pypi.org/project/flake8-implicit-str-concat/) |
| 144 |
"ISC", |
| 145 |
# Pydoclint [pydoclint](https://pypi.org/project/pydoclint/) |
| 146 |
# "DOC", |
| 147 |
# Flake8Commas [flake8-commas](https://pypi.org/project/flake8-commas/) |
| 148 |
"COM", |
| 149 |
# Pylint [Pylint](https://pypi.org/project/pylint/) |
| 150 |
"PL", |
| 151 |
# Flake8Builtins [flake8-builtins](https://pypi.org/project/flake8-builtins/) |
| 152 |
"A", |
| 153 |
|
| 154 |
# Flake8Annotations [flake8-annotations](https://pypi.org/project/flake8-annotations/) |
| 155 |
"ANN", |
| 156 |
# Flake8BlindExcept [flake8-blind-except](https://pypi.org/project/flake8-blind-except/) "BLE", # Mmh |
| 157 |
# Flake8NoPep420 [flake8-no-pep420](https://pypi.org/project/flake8-no-pep420/) "INP", # Mmh |
| 158 |
# Flake8UnusedArguments [flake8-unused-arguments](https://pypi.org/project/flake8-unused-arguments/) "ARG", # Mmh |
| 159 |
# Flake8TypeChecking flake8-type-checking](https://pypi.org/project/flake8-type-checking/) "TC", # Mmh |
| 160 |
# Pydocstyle [pydocstyle](https://pypi.org/project/pydocstyle/) "D", - |
| 161 |
# Flake8Executable [flake8-executable](https://pypi.org/project/flake8-executable/) "EXE", # - |
| 162 |
# Flake8Print [flake8-print](https://pypi.org/project/flake8-print/) "T20", # - |
| 163 |
# Eradicate [eradicate](https://pypi.org/project/eradicate/) "ERA", - |
| 164 |
# Flake8Fixme [flake8-fixme](https://github.com/tommilligan/flake8-fixme) "FIX", # - |
| 165 |
] |
| 166 |
ignore = ["COM812", "PLC0414", "PLR0402", "TD003"] |
| 167 |
|
| 168 |
[tool.ruff.lint.per-file-ignores] |
| 169 |
"**/tests/*" = ["ANN", "PLC0415", "S101", "SLF001"] |
| 170 |
|
| 171 |
# tests import helper modules from scripts/ (added to sys.path at runtime); |
| 172 |
# static checkers need the same search path declared here. |
| 173 |
[tool.mypy] |
| 174 |
mypy_path = "scripts" |
| 175 |
|
| 176 |
[tool.ty.environment] |
| 177 |
extra-paths = ["scripts"] |
| 178 |
|
| 179 |
[dependency-groups] |
| 180 |
dev = ["types-regex", "pytest", "coverage", "radon>=6.0.1"] |