setup.cfg 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. [tool:pytest]
  2. python_files = testsuite/*.py
  3. markers =
  4. allow_cache_wipe
  5. [flake8]
  6. # for reference ...
  7. # E121 continuation line under-indented for hanging indent
  8. # E122 continuation line missing indentation or outdented
  9. # E123 closing bracket does not match indentation of opening bracket's line
  10. # E125 continuation line with same indent as next logical line
  11. # E126 continuation line over-indented for hanging indent
  12. # E127 continuation line over-indented for visual indent
  13. # E128 continuation line under-indented for visual indent
  14. # E221 multiple spaces before operator
  15. # E226 missing whitespace around arithmetic operator
  16. # E261 at least two spaces before inline comment
  17. # E265 block comment should start with '# '
  18. # E301 expected 1 blank line
  19. # E305 expected 2 blank lines after class or function definition
  20. # E401 multiple imports on one line
  21. # E402 module level import not at top
  22. # E501 line too long
  23. # E722 do not use bare except
  24. # E731 do not assign a lambda expression, use def
  25. # E741 ambiguous variable name
  26. # F401 import unused
  27. # F403 from ... import * used, unable to detect undefined names
  28. # F405 undefined or defined from star imports
  29. # F811 redef of unused var
  30. # F821 undefined name
  31. # W391 blank line at end of file
  32. # #### Pick either W503, or W504 - latest recommendation from pep8 is to ignore W503
  33. # W503 line break before binary operator
  34. # W504 line break after binary operator
  35. # borg code style guidelines:
  36. ignore = E226, W503
  37. # Code style violation exceptions:
  38. # please note that the values are adjusted so that they do not cause failures
  39. # with existing code. if you want to change them, you should first fix all
  40. # flake8 failures that appear with your change.
  41. per_file_ignores =
  42. docs/conf.py:E121,E126,E265,E305,E401,E402,
  43. src/borg/archive.py:E122,E125,E127,E402,E501,F401,F405,W504
  44. src/borg/archiver.py:E126,E127,E128,E501,E722,E731,E741,F401,F405,W504
  45. src/borg/cache.py:E127,E128,E402,E501,E722,W504
  46. src/borg/fuse.py:E402,E501,E722,W504
  47. src/borg/helpers.py:E127,E402,E501,E722,E741,F401,F405
  48. src/borg/locking.py:E501,E722
  49. src/borg/remote.py:E128,E501,F405
  50. src/borg/repository.py:E126,E501,F401,F405,W504
  51. src/borg/shellpattern.py:E501
  52. src/borg/upgrader.py:E501
  53. src/borg/algorithms/msgpack/*.py:E127,E221,E261,E301,E402,E722,E731,F401,F403,F821,W391
  54. src/borg/crypto/key.py:E125,E128,E402,E501,F405,W504
  55. src/borg/crypto/keymanager.py:E126,E128,E501,F401
  56. src/borg/crypto/nonces.py:E501
  57. src/borg/platform/__init__.py:F401,F811
  58. src/borg/testsuite/__init__.py:E501,F401
  59. src/borg/testsuite/archive.py:E128,W504
  60. src/borg/testsuite/archiver.py:E128,E501,E722,F401,F405,F811
  61. src/borg/testsuite/benchmark.py:F401,F811
  62. src/borg/testsuite/chunker.py:E501,F405
  63. src/borg/testsuite/compress.py:F401
  64. src/borg/testsuite/crypto.py:E126,E501,E741
  65. src/borg/testsuite/file_integrity.py:F401
  66. src/borg/testsuite/hashindex.py:F401
  67. src/borg/testsuite/helpers.py:E126,E127,E501,F401
  68. src/borg/testsuite/key.py:E501
  69. src/borg/testsuite/locking.py:E126,E722,F401
  70. src/borg/testsuite/patterns.py:E123
  71. src/borg/testsuite/platform.py:E501,F401,F811
  72. src/borg/testsuite/repository.py:E501,F401
  73. src/borg/testsuite/shellpattern.py:E123
  74. src/borg/testsuite/upgrader.py:F405
  75. max_line_length = 120
  76. exclude = build,dist,.git,.idea,.cache,.tox