generated from NASA-PDS/template-repo-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
111 lines (95 loc) · 2.91 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[metadata]
name = your_package_name
author = PDS
author_email = [email protected]
description = A short description, about 100-120 characters, suitable for search summaries
long_description = file: README.md
license = apache-2.0
keywords = pds, planetary data, various, other, keywords
url = https://github.com/NASA-PDS/<TODO: complete URL>
download_url = https://github.com/NASA-PDS/<TODO: complete URL>/releases/
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
[options]
#install_requires =
# Put your requirements here
zip_safe = True
include_package_data = True
namespace_packages = pds
# base directory for code is in src/. Don't change this.
package_dir =
= src
packages = find:
python_requires = >= 3.6
[options.extras_require]
dev =
black
flake8
flake8-bugbear
flake8-docstrings
pep8-naming
mypy
pydocstyle
coverage
pytest
pytest-cov
pytest-watch
pytest-xdist
pre-commit
sphinx
sphinx-rtd-theme
tox
[options.entry_points]
# Put your entry point scripts here
#console_scripts =
# some_script: ...
[options.packages.find]
# Don't change this. Needed to find packages under src/
where=src
[coverage:run]
omit = */_version.py,*/__init__.py
[test]
[tool:pytest]
addopts = -n auto --cov=pds
[install]
[flake8]
max-line-length = 120
extend-exclude = versioneer.py,_version.py,docs,tests,setup.py
docstring_convention = google
# Ignoring:
# E203 prevents flake8 from complaining about whitespace around slice
# components. Black formats per PEP8 and flake8 doesn't like some of
# this.
#
# E501 prevents flake8 from complaining line lengths > 79. We will use
# flake8-bugbear's B950 to handle line length lint errors. This trips
# when a line is > max-line-length + 10%.
extend-ignore = E203, E501
# Selects following test categories:
# D: Docstring errors and warnings
# E, W: PEP8 errors and warnings
# F: PyFlakes codes
# N: PEP8 Naming plugin codes
# B: flake8-bugbear codes
# B***: Specific flake8-bugbear opinionated warnings to trigger
# B902: Invalid first argument used for method. Use self for instance
# methods, and cls for class methods
# B903: Use collections.namedtuple (or typing.NamedTuple) for data classes
# that only set attributes in an __init__ method, and do nothing else.
# B950: Line too long. This is a pragmatic equivalent of pycodestyle's
# E501: it considers "max-line-length" but only triggers when the value
# has been exceeded by more than 10%.
select = D,E,F,N,W,B,B902,B903,B950
[mypy]
[mypy-pds.*._version]
# We don't care about issues in versioneer's files
ignore_errors = True
[versioneer]
VCS = git
style = pep440
tag_prefix = v
versionfile_source = src/pds/my_pds_module/_version.py
versionfile_build = pds/my_pds_module/_version.py
parentdir_prefix = pds.my_pds_module-