setup.cfg 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. [metadata]
  2. name = borgbackup
  3. author = The Borg Collective (see AUTHORS file)
  4. description = Deduplicated, encrypted, authenticated and compressed backups
  5. url = https://borgbackup.org
  6. keywords =
  7. backup
  8. borgbackup
  9. classifiers =
  10. Development Status :: 3 - Alpha
  11. Environment :: Console
  12. Intended Audience :: System Administrators
  13. License :: OSI Approved :: BSD License
  14. Operating System :: POSIX :: BSD :: FreeBSD
  15. Operating System :: POSIX :: BSD :: OpenBSD
  16. Operating System :: POSIX :: BSD :: NetBSD
  17. Operating System :: MacOS :: MacOS X
  18. Operating System :: POSIX :: Linux
  19. Programming Language :: Python
  20. Programming Language :: Python :: 3
  21. Programming Language :: Python :: 3.9
  22. Programming Language :: Python :: 3.10
  23. Programming Language :: Python :: 3.11
  24. Topic :: Security :: Cryptography
  25. Topic :: System :: Archiving :: Backup
  26. platforms = Linux, MacOS X, FreeBSD, OpenBSD, NetBSD
  27. license = BSD
  28. license_files = LICENSE
  29. project_urls =
  30. Bug Tracker = https://github.com/borgbackup/borg/issues
  31. Documentation = https://borgbackup.readthedocs.io
  32. Source Code = https://github.com/borgbackup/borg
  33. [options]
  34. packages = find:
  35. package_dir =
  36. =src
  37. python_requires = >=3.9
  38. setup_requires =
  39. setuptools_scm[toml] >= 6.2
  40. install_requires =
  41. msgpack >=1.0.3, <=1.0.4
  42. packaging
  43. argon2-cffi
  44. tests_require =
  45. pytest
  46. zip_safe = False
  47. # See also the MANIFEST.in file.
  48. # We want to install all the files in the package directories...
  49. include_package_data = true
  50. # ...except the source files which have been compiled (C extensions):
  51. [options.exclude_package_data]
  52. * =
  53. *.c
  54. *.h
  55. *.pyx
  56. [options.packages.find]
  57. where = src
  58. [options.entry_points]
  59. console_scripts =
  60. borg = borg.archiver:main
  61. borgfs = borg.archiver:main
  62. [options.extras_require]
  63. llfuse = llfuse >= 1.3.8
  64. pyfuse3 = pyfuse3 >= 3.1.1
  65. nofuse =
  66. [tool:pytest]
  67. python_files = testsuite/*.py
  68. markers =
  69. allow_cache_wipe
  70. [flake8]
  71. # for reference ...
  72. # E121 continuation line under-indented for hanging indent
  73. # E122 continuation line missing indentation or outdented
  74. # E123 closing bracket does not match indentation of opening bracket's line
  75. # E125 continuation line with same indent as next logical line
  76. # E126 continuation line over-indented for hanging indent
  77. # E127 continuation line over-indented for visual indent
  78. # E128 continuation line under-indented for visual indent
  79. # E221 multiple spaces before operator
  80. # E226 missing whitespace around arithmetic operator
  81. # E261 at least two spaces before inline comment
  82. # E265 block comment should start with '# '
  83. # E301 expected 1 blank line
  84. # E305 expected 2 blank lines after class or function definition
  85. # E401 multiple imports on one line
  86. # E402 module level import not at top
  87. # E501 line too long
  88. # E722 do not use bare except
  89. # E731 do not assign a lambda expression, use def
  90. # E741 ambiguous variable name
  91. # F401 import unused
  92. # F403 from ... import * used, unable to detect undefined names
  93. # F405 undefined or defined from star imports
  94. # F811 redef of unused var
  95. # F821 undefined name
  96. # W391 blank line at end of file
  97. # #### Pick either W503, or W504 - latest recommendation from pep8 is to ignore W503
  98. # W503 line break before binary operator
  99. # W504 line break after binary operator
  100. # borg code style guidelines:
  101. # Ignoring E203 due to https://github.com/PyCQA/pycodestyle/issues/373
  102. ignore = E226, W503, E203
  103. # Code style violation exceptions:
  104. # please note that the values are adjusted so that they do not cause failures
  105. # with existing code. if you want to change them, you should first fix all
  106. # flake8 failures that appear with your change.
  107. per_file_ignores =
  108. docs/conf.py:E121,E126,E265,E305,E401,E402
  109. src/borg/archive.py:E122,E125,E127,E402,E501,F401,F405,W504
  110. src/borg/archiver.py:E126,E127,E128,E501,E722,E731,E741,F401,F405,W504
  111. src/borg/cache.py:E127,E128,E402,E501,E722,W504
  112. src/borg/fuse.py:E402,E501,E722,W504
  113. src/borg/fuse_impl.py:F811
  114. src/borg/locking.py:E128,E501,E722
  115. src/borg/remote.py:E128,E501,F405
  116. src/borg/repository.py:E126,E128,E501,F401,F405,W504
  117. src/borg/shellpattern.py:E501
  118. src/borg/upgrader.py:E501
  119. src/borg/xattr.py:E402
  120. src/borg/crypto/key.py:E125,E128,E402,E501,F401,F405,W504
  121. src/borg/crypto/keymanager.py:E126,E128,E501,F401
  122. src/borg/crypto/nonces.py:E128,E501
  123. src/borg/helpers/__init__.py:F401,F405
  124. src/borg/helpers/checks.py:F401
  125. src/borg/helpers/errors.py:F405
  126. src/borg/helpers/fs.py:F405
  127. src/borg/helpers/manifest.py:E128,E402,E501,F405
  128. src/borg/helpers/misc.py:E402,E722,F401,F405
  129. src/borg/helpers/msgpack.py:E127,F405
  130. src/borg/helpers/parseformat.py:E402,E501,E741,F401,F405
  131. src/borg/helpers/process.py:E402,F401,W504
  132. src/borg/helpers/progress.py:E402
  133. src/borg/platform/__init__.py:F401,F811
  134. src/borg/platform/base.py:E402
  135. src/borg/testsuite/__init__.py:E501,F401
  136. src/borg/testsuite/archive.py:E128,W504
  137. src/borg/testsuite/archiver.py:E128,E501,E722,F401,F405,F811
  138. src/borg/testsuite/benchmark.py:F401,F811
  139. src/borg/testsuite/chunker.py:E501,F405
  140. src/borg/testsuite/chunker_pytest.py:F401
  141. src/borg/testsuite/chunker_slow.py:F405
  142. src/borg/testsuite/crypto.py:E126,E501,E741
  143. src/borg/testsuite/file_integrity.py:F401
  144. src/borg/testsuite/hashindex.py:F401
  145. src/borg/testsuite/helpers.py:E126,E127,E128,E501,F401
  146. src/borg/testsuite/key.py:E501,F401
  147. src/borg/testsuite/locking.py:E126,E128,E501,E722,F401
  148. src/borg/testsuite/patterns.py:E123
  149. src/borg/testsuite/platform.py:E128,E501,F401,F811
  150. src/borg/testsuite/repository.py:E128,E501,F401
  151. src/borg/testsuite/shellpattern.py:E123
  152. src/borg/testsuite/upgrader.py:F405
  153. max_line_length = 120
  154. exclude = build,dist,.git,.idea,.cache,.tox