[project] name = "Decopy" version = "0.3.3" authors = [{ name = "Maximiliano Curia", email = "maxy@debian.org" }] description = "Automatic debian/copyright Generator" readme = "README.md" requires-python = ">=3.12,<4" classifiers = [ 'Environment :: Console', 'Programming Language :: Python :: 3', 'Operating System :: POSIX :: Linux', 'License :: OSI Approved :: ISC License (ISCL)', ] license = "ISC" dependencies = ["python-debian", "tqdm", "pyxdg", "regex"] [project.urls] Homepage = "https://salsa.debian.org/debian/decopy" Repository = "https://salsa.debian.org/debian/decopy.git" "Bug Tracker" = "https://salsa.debian.org/debian/decopy/-/issues" Changelog = "https://salsa.debian.org/debian/decopy/-/blob/debian/master/debian/changelog" [project.scripts] decopy = "decopy.decopy:main" [project.optional-dependencies] zstd = ["zipfile-zstd>=0.0.4; python_version < '3.14'"] prefilter = ["pyahocorasick>=1.4.1"] gitignore = ["pathspec>=1.0.4"] [build-system] requires = ["hatchling"] build-backend = "hatchling.build" [tool.hatch.build.targets.sdist] exclude = ["/debian"] # The shipped licence-text data (decopy/licensing/data/**: the headers/, # licenses/, exceptions/ .txt files and common_licenses_index.txt) needs no # explicit include: hatchling ships every non-.py file inside the decopy # package by default. Do NOT add a wheel `include` glob for the data alone - # that switches hatchling to only-include and would drop the .py modules. # Verified in the built sdist and wheel (S5.3). [tool.hatch.envs.test] dependencies = ["pytest"] [tool.ruff] target-version = "py312" [tool.ruff.lint] select = [ # Pyflakes [Pyflakes](https://pypi.org/project/pyflakes/) "F", # Pycodestyle [pycodestyle](https://pypi.org/project/pycodestyle/) "E", "W", # Isort [isort](https://pypi.org/project/isort/) "I", # Pyupgrade [pyupgrade](https://pypi.org/project/pyupgrade/) "UP", # Flake8Bugbear [flake8-bugbear](https://pypi.org/project/flake8-bugbear/) "B", # Flake8Simplify [flake8-simplify](https://pypi.org/project/flake8-simplify/) "SIM", # Flake82020 [flake8-2020](https://pypi.org/project/flake8-2020/) "YTT", # Flake8Async [flake8-async](https://pypi.org/project/flake8-async/) "ASYNC", # Flake8BooleanTrap [flake8-boolean-trap](https://pypi.org/project/flake8-boolean-trap/) "FBT", # Flake8Comprehensions [flake8-comprehensions](https://pypi.org/project/flake8-comprehensions/) "C4", # Flake8Datetimez [flake8-datetimez](https://pypi.org/project/flake8-datetimez/) "DTZ", # Flake8Debugger [flake8-debugger](https://pypi.org/project/flake8-debugger/) "T10", # Flake8Django [flake8-django](https://pypi.org/project/flake8-django/) "DJ", # Flake8ErrMsg [flake8-errmsg](https://pypi.org/project/flake8-errmsg/) "EM", # Flake8FutureAnnotations [flake8-future-annotations](https://pypi.org/project/flake8-future-annotations/) "FA", # Flake8ImportConventions [flake8-import-conventions](https://github.com/joaopalmeiro/flake8-import-conventions) "ICN", # Flake8LoggingFormat [flake8-logging-format](https://pypi.org/project/flake8-logging-format/) "G", # Flake8Pie [flake8-pie](https://pypi.org/project/flake8-pie/) "PIE", # Flake8Pyi [flake8-pyi](https://pypi.org/project/flake8-pyi/) "PYI", # Flake8PytestStyle [flake8-pytest-style](https://pypi.org/project/flake8-pytest-style/) # "PT", # Flake8Quotes [flake8-quotes](https://pypi.org/project/flake8-quotes/) "Q", # Flake8Raise [flake8-raise](https://pypi.org/project/flake8-raise/) "RSE", # Flake8Return [flake8-return](https://pypi.org/project/flake8-return/) "RET", # PandasVet [pandas-vet](https://pypi.org/project/pandas-vet/) "PD", # Numpy NumPy-specific rules "NPY", # Perflint [Perflint](https://pypi.org/project/perflint/) "PERF", # Flake8Logging [flake8-logging](https://pypi.org/project/flake8-logging/) "LOG", # Ruff Ruff-specific rules "RUF", # McCabe [mccabe](https://pypi.org/project/mccabe/) "C90", # PEP8Naming [pep8-naming](https://pypi.org/project/pep8-naming/) "N", # Flake8Bandit [flake8-bandit](https://pypi.org/project/flake8-bandit/) "S", # Flake8Todos [flake8-todos](https://github.com/orsinium-labs/flake8-todos/) "TD", # Flake8Self [flake8-self](https://pypi.org/project/flake8-self/) "SLF", # Flake8Slots [flake8-slots](https://pypi.org/project/flake8-slots/) "SLOT", # Flake8TidyImports [flake8-tidy-imports](https://pypi.org/project/flake8-tidy-imports/) "TID", # Flake8GetText [flake8-gettext](https://pypi.org/project/flake8-gettext/) "INT", # Flake8UsePathlib [flake8-use-pathlib](https://pypi.org/project/flake8-use-pathlib/) "PTH", # PygrepHooks [pygrep-hooks](https://github.com/pre-commit/pygrep-hooks) "PGH", # Tryceratops [tryceratops](https://pypi.org/project/tryceratops/) "TRY", # Flynt [flynt](https://pypi.org/project/flynt/) "FLY", # Airflow [Airflow](https://pypi.org/project/apache-airflow/) "AIR", # FastAPI [FastAPI](https://pypi.org/project/fastapi/) "FAST", # Refurb [refurb](https://pypi.org/project/refurb/) "FURB", # Flake8Copyright [flake8-copyright](https://pypi.org/project/flake8-copyright/) # "CPY", # Flake8ImplicitStrConcat [flake8-implicit-str-concat](https://pypi.org/project/flake8-implicit-str-concat/) "ISC", # Pydoclint [pydoclint](https://pypi.org/project/pydoclint/) # "DOC", # Flake8Commas [flake8-commas](https://pypi.org/project/flake8-commas/) "COM", # Pylint [Pylint](https://pypi.org/project/pylint/) "PL", # Flake8Builtins [flake8-builtins](https://pypi.org/project/flake8-builtins/) "A", # Flake8Annotations [flake8-annotations](https://pypi.org/project/flake8-annotations/) "ANN", # Flake8BlindExcept [flake8-blind-except](https://pypi.org/project/flake8-blind-except/) "BLE", # Mmh # Flake8NoPep420 [flake8-no-pep420](https://pypi.org/project/flake8-no-pep420/) "INP", # Mmh # Flake8UnusedArguments [flake8-unused-arguments](https://pypi.org/project/flake8-unused-arguments/) "ARG", # Mmh # Flake8TypeChecking flake8-type-checking](https://pypi.org/project/flake8-type-checking/) "TC", # Mmh # Pydocstyle [pydocstyle](https://pypi.org/project/pydocstyle/) "D", - # Flake8Executable [flake8-executable](https://pypi.org/project/flake8-executable/) "EXE", # - # Flake8Print [flake8-print](https://pypi.org/project/flake8-print/) "T20", # - # Eradicate [eradicate](https://pypi.org/project/eradicate/) "ERA", - # Flake8Fixme [flake8-fixme](https://github.com/tommilligan/flake8-fixme) "FIX", # - ] ignore = ["COM812", "PLC0414", "PLR0402", "TD003"] [tool.ruff.lint.per-file-ignores] "**/tests/*" = ["ANN", "PLC0415", "S101", "SLF001"] # tests import helper modules from scripts/ (added to sys.path at runtime); # static checkers need the same search path declared here. [tool.mypy] mypy_path = "scripts" [tool.ty.environment] extra-paths = ["scripts"] [dependency-groups] dev = ["types-regex", "pytest", "coverage", "radon>=6.0.1"]