You've already forked style_checker
mirror of
https://github.com/AdaCore/style_checker.git
synced 2026-02-12 12:58:19 -08:00
This commit simply runs "black" on all our Python files except
those in testsuites/tests/.
Note that I ran into one small difficulty when reformatting setup.py,
where black was reformatting a couple of lines in the code in a way
that it triggered the following E231 flake8 violations:
setup.py:23:69: E231 missing whitespace after ','
setup.py:25:74: E231 missing whitespace after ','
This is a known issue with black...
https://github.com/psf/black/issues/1288
... which is fortunately easily worked around by simply removing
the offending comma (black does not add it back).
Change-Id: I492eb1ca5fa371d063e691f7fe06c47daae60d4c
27 lines
748 B
Python
27 lines
748 B
Python
from setuptools import setup, find_packages
|
|
|
|
import os
|
|
|
|
install_requires = [
|
|
"pyyaml",
|
|
"flake8",
|
|
]
|
|
|
|
with open(os.path.join(os.path.dirname(__file__), "README.md")) as f:
|
|
long_description = f.read()
|
|
|
|
setup(
|
|
name="adacore-style-checker",
|
|
url="https://github.com/AdaCore/style_checker",
|
|
author="AdaCore",
|
|
author_email="info@adacore.com",
|
|
description="AdaCore Style Checker",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
packages=find_packages(where="."),
|
|
package_dir={"": "."},
|
|
package_data={"asclib.checkers.typific": ["*.xml"], "etc": ["*"]},
|
|
install_requires=install_requires,
|
|
entry_points={"console_scripts": ["style_checker = asclib.main:main"]},
|
|
)
|