-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.cfg
90 lines (77 loc) · 1.94 KB
/
setup.cfg
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[metadata]
name = pywhlobf
version = 22.1.0
author = Hunt Zhan
author_email = huntzhan.dev@gmail.com
description = todo
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/huntzhan/pywhlobf
license = MIT
[options]
packages = find:
python_requires = >= 3.7, < 3.12
install_requires =
Cython >= 0.29.28
# TODO:
# > 0.37.1 raises the following error
# "error: each element of 'ext_modules' option must be an Extension instance or 2-tuple"
wheel == 0.37.1
fire >= 0.4.0
[options.extras_require]
cython3 =
Cython >= 3.0.0a10
dev =
build >= 0.2.1
fireball >= 0.5.1
pytest >= 6.1.2
yapf >= 0.30.0
flake8 >= 3.8.4
pdoc3 >= 0.9.2
twine >= 3.2.0
ipython >= 7.20.0
pdbpp >= 0.10.2
rope >= 0.18.0
[options.package_data]
* = asset/*.h
[options.entry_points]
console_scripts =
pywhlobf = pywhlobf.cli:fire_batch_run
# Code linting.
[flake8]
max-line-length = 100
ignore =
# From AllenNLP
# these rules don't play well with black
E203 # whitespace before :
W503 # line break before binary operator
# From Yapf
# indentation is not a multiple of four,
E111
E114
# visually indented line with same indent as next logical line,
E129
exclude =
build/**
dist/**
data/**
doc/**
per-file-ignores =
# __init__.py files are allowed to have unused imports and lines-too-long
*/__init__.py:F401
*/**/**/__init__.py:F401,E501
# tests don't have to respect
# E731: do not assign a lambda expression, use a def
tests/**:E731
# scripts don't have to respect
# E402: imports not at top of file (because we mess with sys.path)
scripts/**:E402
# Code formatting.
[yapf]
based_on_style = google
column_limit = 100
dedent_closing_brackets = true
coalesce_brackets = true
split_before_bitwise_operator = true
split_before_arithmetic_operator = true
split_before_logical_operator = true