Skip to content

Commit 1b39854

Browse files
committed
Add/update project configs
1 parent 113bd78 commit 1b39854

2 files changed

Lines changed: 81 additions & 0 deletions

File tree

.editorconfig

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This is an EditorConfig file
2+
# https://EditorConfig.org
3+
4+
root = true
5+
6+
[*]
7+
end_of_line = lf
8+
insert_final_newline = true
9+
charset = utf-8
10+
indent_style = tab
11+
indent_size = 4
12+
insert_final_newline = true
13+
14+
[*.yml]
15+
indent_style = space
16+
indent_size = 2
17+
end_of_line = lf
18+
insert_final_newline = true
19+
20+
[*.py]
21+
indent_style = space
22+
indent_size = 4
23+
end_of_line = lf
24+
insert_final_newline = true
25+
26+
# Tab indentation (no size specified)
27+
[Makefile]
28+
indent_style = tab

setup.cfg

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,56 @@ show_response = 1
1818

1919
[aliases]
2020
release = egg_info -RDb ''
21+
22+
[bdist_wheel]
23+
universal=1
24+
25+
[bdist_rpm]
26+
packager = Rocky Bernstein <rocky@gnu.org>
27+
provides = pycolumnize # Seems to go in rpm's "provides"?
28+
29+
[metadata]
30+
description_file = README.rst
31+
ChangeLog
32+
LICENSE
33+
NEWS.md
34+
35+
36+
[flake8]
37+
# max-line-length setting: NO we do not want everyone writing 120-character lines!
38+
# We are setting the maximum line length big here because there are longer
39+
# lines allowed by black in some cases that are forbidden by flake8. Since
40+
# black has the final say about code formatting issues, this setting is here to
41+
# make sure that flake8 doesn't fail the build on longer lines allowed by
42+
# black.
43+
max-line-length = 120
44+
max-complexity = 12
45+
select = E,F,W,C,B,B9
46+
ignore =
47+
# E123 closing bracket does not match indentation of opening bracket's line
48+
E123
49+
# E203 whitespace before ':' (Not PEP8 compliant, Python Black)
50+
E203
51+
# E501 line too long (82 > 79 characters) (replaced by B950 from flake8-bugbear,
52+
# https://github.com/PyCQA/flake8-bugbear)
53+
E501
54+
# W503 line break before binary operator (Not PEP8 compliant, Python Black)
55+
W503
56+
# W504 line break after binary operator (Not PEP8 compliant, Python Black)
57+
W504
58+
# C901 function too complex - since many of zz9 functions are too complex with a lot
59+
# of if branching
60+
C901
61+
# module level import not at top of file. This is too restrictive. Can't even have a
62+
# docstring higher.
63+
E402
64+
per-file-ignores =
65+
# These are config files. The `c` variable them is injected not defined.
66+
pow/ansible/roles/jupyterhub/templates/jupyterhub_config*.py:F821
67+
# Ignore some errors in files that are stolen from other projects to avoid lots
68+
# of merge problems later .
69+
pow/ansible/roles/webtier/files/supervisor_httpgroupok.py:E126,E128,E222,E225,E226,E261,E301,E302,E305,F841,E201,E202
70+
silhouette/src/silhouette/gprof2dot.py:E711,E713,E741,F401
71+
# Ignore undefined name errors in "expectation" test Python code.
72+
# These files get exec'd in an environment that defines the variables.
73+
server/tests/files/expectations/*.py:F821

0 commit comments

Comments
 (0)