Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

setup.cfg 1.7 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  1. # Project-wide configuration file, can be used for package metadata and other toll configurations
  2. # Example usage: global configuration for PEP8 (via flake8) setting or default pytest arguments
  3. # Local usage: pip install pre-commit, pre-commit run --all-files
  4. [metadata]
  5. license_files = LICENSE
  6. description_file = README.md
  7. [tool:pytest]
  8. norecursedirs =
  9. .git
  10. dist
  11. build
  12. addopts =
  13. --doctest-modules
  14. --durations=25
  15. --color=yes
  16. [flake8]
  17. max-line-length = 120
  18. exclude = .tox,*.egg,build,temp
  19. select = E,W,F
  20. doctests = True
  21. verbose = 2
  22. # https://pep8.readthedocs.io/en/latest/intro.html#error-codes
  23. format = pylint
  24. # see: https://www.flake8rules.com/
  25. ignore = E731,F405,E402,W504,E501
  26. # E731: Do not assign a lambda expression, use a def
  27. # F405: name may be undefined, or defined from star imports: module
  28. # E402: module level import not at top of file
  29. # W504: line break after binary operator
  30. # E501: line too long
  31. # removed:
  32. # F401: module imported but unused
  33. # E231: missing whitespace after β€˜,’, β€˜;’, or β€˜:’
  34. # E127: continuation line over-indented for visual indent
  35. # F403: β€˜from module import *’ used; unable to detect undefined names
  36. [isort]
  37. # https://pycqa.github.io/isort/docs/configuration/options.html
  38. line_length = 120
  39. # see: https://pycqa.github.io/isort/docs/configuration/multi_line_output_modes.html
  40. multi_line_output = 0
  41. [yapf]
  42. based_on_style = pep8
  43. spaces_before_comment = 2
  44. COLUMN_LIMIT = 120
  45. COALESCE_BRACKETS = True
  46. SPACES_AROUND_POWER_OPERATOR = True
  47. SPACE_BETWEEN_ENDING_COMMA_AND_CLOSING_BRACKET = True
  48. SPLIT_BEFORE_CLOSING_BRACKET = False
  49. SPLIT_BEFORE_FIRST_ARGUMENT = False
  50. # EACH_DICT_ENTRY_ON_SEPARATE_LINE = False
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...