Skip to content

Commit

Permalink
chore: move to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Apr 30, 2024
1 parent 31fcddf commit d6311fe
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 39 deletions.
18 changes: 0 additions & 18 deletions MANIFEST.in

This file was deleted.

57 changes: 57 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
[project]
name = "erpnext_datev"
authors = [
{ name = "ALYF GmbH", email = "hallo@alyf.de"}
]
description = "ERPNext-DATEV Inegration"
requires-python = ">=3.10"
readme = "README.md"
dynamic = ["version"]
dependencies = [
"pandas>=1.1.5,<2.0.0",
]

[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"

[tool.bench.frappe-dependencies]
frappe = ">=15.0.0,<16.0.0"
erpnext = ">=15.0.0,<16.0.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
2 changes: 0 additions & 2 deletions requirements.txt

This file was deleted.

19 changes: 0 additions & 19 deletions setup.py

This file was deleted.

0 comments on commit d6311fe

Please sign in to comment.