setup.cfg 5.6 KB

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