[project] name = "hrms" authors = [ { name = "Frappe Technologies Pvt Ltd", email = "developers@frappe.io" }, ] description = "Open Source HR & Payroll Software" requires-python = ">=3.10" readme = "README.md" dynamic = ["version"] [build-system] requires = ["flit_core >=3.4,<4"] build-backend = "flit_core.buildapi" [tool.frappe.testing.function_type_validation] max_module_depth = 0 [tool.ruff] line-length = 110 target-version = "py310" [tool.ruff.lint] select = ["F", "E", "W", "I", "UP", "B", "RUF"] ignore = [ "B017", # assertRaises(Exception) - should be more specific "B018", # useless expression, not assigned to anything "B023", # function doesn't bind loop variable - will have last iteration's value "B904", # raise inside except without from "E101", # indentation contains mixed spaces and tabs "E402", # module level import not at top of file "E501", # line too long "E741", # ambiguous variable name "F401", # "unused" imports "F403", # can't detect undefined names from * import "F405", # can't detect undefined names from * import "F722", # syntax error in forward type annotation "W191", # indentation contains tabs "RUF001", # string contains ambiguous unicode character ] typing-modules = ["frappe.types.DF"] [tool.ruff.format] quote-style = "double" indent-style = "tab" docstring-code-format = true [tool.ruff.lint.isort.sections] "frappe" = ["frappe"] "erpnext" = ["erpnext"] "hrms" = ["hrms"] [tool.ruff.lint.isort] section-order = [ "future", "standard-library", "third-party", "frappe", "erpnext", "hrms", "first-party", "local-folder", ] [project.urls] Homepage = "https://frappe.io/hr" Repository = "https://github.com/frappe/hrms.git" Documentation = "https://docs.frappe.io/hr" "Bug Reports" = "https://github.com/frappe/hrms/issues" [[tool.bench.assets]] build_dir = "./frontend" out_dir = "./hrms/public/frontend" index_html_path = "./hrms/www/hrms.html" [[tool.bench.assets]] build_dir = "./roster" out_dir = "./hrms/public/roster" index_html_path = "./hrms/www/roster.html" [tool.bench.frappe-dependencies] frappe = ">=17.0.0-dev,<18.0.0" erpnext = ">=17.0.0-dev,<18.0.0"