Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 190b0c2

Browse files
committed
Split code into files - and all tests pass again
1 parent 18959c0 commit 190b0c2

26 files changed

+1806
-1797
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268

269269

270270
def generate_error_code_table():
271-
from pydocstyle import ErrorRegistry
271+
from violations import ErrorRegistry
272272
with open(os.path.join('snippets', 'error_code_table.rst'), 'wt') as outf:
273273
outf.write(ErrorRegistry.to_rst())
274274

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup
44

55

6-
with open(os.path.join('src', 'pydocstyle.py')) as f:
6+
with open(os.path.join('src', 'pydocstyle', 'pydocstyle.py')) as f:
77
for line in f:
88
if line.startswith('__version__'):
99
version = eval(line.split('=')[-1])
@@ -27,12 +27,12 @@
2727
'License :: OSI Approved :: MIT License',
2828
],
2929
keywords='pydocstyle, PEP 257, pep257, PEP 8, pep8, docstrings',
30-
package_dir={'': 'src'},
31-
py_modules=['pydocstyle'],
30+
package_dir={'pydocstyle': 'src/pydocstyle'},
31+
#py_modules=['pydocstyle'],
3232
entry_points={
3333
'console_scripts': [
34-
'pydocstyle = pydocstyle:main',
35-
'pep257 = pydocstyle:main_pep257',
34+
'pydocstyle = pydocstyle.cli:main',
35+
'pep257 = pydocstyle.cli:main_pep257',
3636
],
3737
},
3838
)

0 commit comments

Comments
 (0)