[build-system] requires = ["flit_core >=2,<4"] build-backend = "flit_core.buildapi" [tool.flit.metadata] module = "work_helpers" author = "Holger Frey" author-email = "frey@imtek.de" home-page = "https://git.cpi.imtek.uni-freiburg.de/holgi/work-helpers" description-file = "README.md" license = "Beerware" requires = [ "pyperclip >=1.8.0", "click >= 7.1.2", "pandas", "openpyxl", "ruff", "py-gitea", "PyPDFForm", ] [tool.flit.scripts] form_inspect = "work_helpers.fill_forms:inspect" form_prepare_payments = "work_helpers.fill_forms:prepare_payments" form_fill_payments = "work_helpers.fill_forms:payments" nice_path = "work_helpers.nice_path:make_nice_path" random_password = "work_helpers.password:get_random_password" random_ints = "work_helpers.random_int:generate_random_number_list" sensospot_rename = "work_helpers.sensospot_rename:sensospot_rename" sg_mbp_new_version = "work_helpers.sg_mbp_build:sg_mbp_new_version" sg_mbp_build = "work_helpers.sg_mbp_build:sg_mbp_build" sg_mbp_issue_ref = "work_helpers.sg_mbp_issue:sg_mbp_issue_ref" xls2changelog = "work_helpers.excel2changelog:cli" xls2markdown = "work_helpers.excel2markdown:cli" xls2pylist = "work_helpers.excel2pylist:cli" [tool.ruff] # see https://docs.astral.sh/ruff/configuration/ line-length = 80 indent-width = 4 fix = true [tool.ruff.lint] # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. # Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or # McCabe complexity (`C901`) by default. fixable = ["ALL"] select = ["ALL"] ignore = [ # ignored for now, should be activated in the future # docstrings "D", # don't complain about not annotating self or cls "ANN101", "ANN102", # ignored, "ruff format" will handle this "COM812", "ISC001", # ignored, due to Windows / WSL2 setup # flake8-executable "EXE", ] [tool.ruff.lint.pydocstyle] convention = "pep257" # Accepts: "google", "numpy", or "pep257". [tool.ruff.lint.per-file-ignores] # see https://github.com/charliermarsh/ruff "tests/*" = ["FBT003", "INP001", "PLR2004", "S101", "SLF001", "ANN"] "noxfile.py" = ["ANN"] [tool.ruff.format] indent-style = "space"