Skip to content

Commit be71aa3

Browse files
committed
Switch to using setup.cfg
1 parent 99b9a4f commit be71aa3

File tree

2 files changed

+92
-36
lines changed

2 files changed

+92
-36
lines changed

setup.cfg

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
[metadata]
2+
name = flexlay
3+
version = 0.2.0
4+
description = "A Generic 2D Game Editor"
5+
long_description = file: README.md
6+
license = GPLv3+
7+
author = "Ingo Ruhnke"
8+
author_email = "[email protected]"
9+
url = http://github.com/flexlay/flexlay
10+
11+
[options]
12+
packages = find:
13+
14+
[options.entry_points]
15+
gui_scripts =
16+
supertux-editor = supertux.supertux:main
17+
supertux-texteditor = supertux.text_editor.cmd_supertux_textedit:main
18+
19+
[flake8]
20+
max-line-length = 120
21+
22+
[mypy]
23+
strict = True
24+
check_untyped_defs = True
25+
disallow_untyped_defs = True
26+
warn_return_any = True
27+
warn_unreachable = True
28+
warn_unused_configs = True
29+
ignore_missing_imports = True
30+
31+
# must be False, see https://github.com/python/mypy/issues/10757
32+
disallow_untyped_calls = False
33+
34+
# triggered by QObject
35+
disallow_subclassing_any = False
36+
37+
# Can't use this due to mypy/pyright having different ideas about cast()
38+
warn_redundant_casts = False
39+
40+
[mypy-flexlay.*]
41+
ignore_missing_imports = False
42+
43+
[mypy-supertux.*]
44+
ignore_missing_imports = False
45+
46+
[mypy-tests.*]
47+
ignore_missing_imports = False
48+
49+
[pylint]
50+
extension-pkg-whitelist = PyQt5
51+
disable =
52+
broad-except,
53+
consider-using-f-string,
54+
consider-using-in,
55+
duplicate-code,
56+
fixme,
57+
import-outside-toplevel,
58+
invalid-name,
59+
logging-format-interpolation,
60+
logging-fstring-interpolation,
61+
missing-class-docstring,
62+
missing-function-docstring,
63+
missing-module-docstring,
64+
no-else-return,
65+
no-self-use,
66+
protected-access,
67+
superfluous-parens,
68+
too-few-public-methods,
69+
too-many-arguments,
70+
too-many-branches,
71+
too-many-instance-attributes,
72+
too-many-locals,
73+
too-many-public-methods,
74+
too-many-return-statements,
75+
too-many-statements,
76+
unnecessary-lambda,
77+
unspecified-encoding,
78+
unused-argument,
79+
unused-variable,
80+
using-constant-test,
81+
too-many-nested-blocks,
82+
use-implicit-booleaness-not-comparison,
83+
consider-using-from-import,
84+
useless-super-delegation,
85+
consider-iterating-dictionary,
86+
87+
[pylint.FORMAT]
88+
max-line-length = 120
89+
90+
# EOF #

setup.py

100755100644
Lines changed: 2 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,2 @@
1-
#!/usr/bin/env python3
2-
3-
# Flexlay - A Generic 2D Game Editor
4-
# Copyright (C) 2018 Ingo Ruhnke <[email protected]>
5-
#
6-
# This program is free software: you can redistribute it and/or modify
7-
# it under the terms of the GNU General Public License as published by
8-
# the Free Software Foundation, either version 3 of the License, or
9-
# (at your option) any later version.
10-
#
11-
# This program is distributed in the hope that it will be useful,
12-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
# GNU General Public License for more details.
15-
#
16-
# You should have received a copy of the GNU General Public License
17-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18-
19-
20-
from setuptools import setup, find_packages
21-
22-
23-
setup(name='flexlay',
24-
version='0.2.0',
25-
scripts=[],
26-
entry_points={
27-
'console_scripts': [
28-
'supertux-editor = supertux.supertux:main',
29-
'supertux-texteditor = supertux.text_editor.cmd_supertux_textedit:main',
30-
]
31-
},
32-
packages=find_packages()
33-
)
34-
35-
36-
# EOF #
1+
from setuptools import setup
2+
setup()

0 commit comments

Comments
 (0)