forked from Timple/ament_black
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reformat a bit the help, no real changes * Use black python API to fetch the list of checked files * Ignore colcon build artifacts * Use single quotes per ROS Standards Yes, this package does not pass `black` format anymore. Info: - https://docs.ros.org/en/rolling/The-ROS2-Project/Contributing/Code-Style-Language-Versions.html * Fix imports * This just got messy * Add ruff as pre-commit for ROS style on black repo * Hack the CI to make it ROS-happy * Move inside * Use isort --profile=google for making ROS folks happy * Already defaults * remove ruff.toml * Update pre-commit * Fix ci * Add flake8 with (unlisted) plugins to avoid this pain in future
- Loading branch information
1 parent
90f0c3e
commit 60d353d
Showing
13 changed files
with
127 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[flake8] | ||
extend-ignore = B902,C816,D100,D101,D102,D103,D104,D105,D106,D107,D203,D212,D404,I202 | ||
import-order-style = google | ||
max-line-length = 99 | ||
show-source = true | ||
statistics = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[tool.ruff] | ||
line-length = 99 | ||
|
||
[tool.ruff.format] | ||
quote-style = "single" | ||
|
||
[tool.isort] | ||
profile = "google" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
from setuptools import find_packages, setup | ||
from setuptools import find_packages | ||
from setuptools import setup | ||
|
||
package_name = "ament_black" | ||
package_name = 'ament_black' | ||
|
||
setup( | ||
name=package_name, | ||
version="0.2.3", | ||
packages=find_packages(exclude=["test"]), | ||
version='0.2.3', | ||
packages=find_packages(exclude=['test']), | ||
data_files=[ | ||
("share/" + package_name, ["package.xml"]), | ||
("share/ament_index/resource_index/packages", ["resource/" + package_name]), | ||
('share/' + package_name, ['package.xml']), | ||
('share/ament_index/resource_index/packages', ['resource/' + package_name]), | ||
], | ||
install_requires=[ | ||
"black==21.12b0", | ||
"setuptools>=56", | ||
"unidiff>=0.5", | ||
"uvloop==0.17.0", | ||
'black==21.12b0', | ||
'setuptools>=56', | ||
'unidiff>=0.5', | ||
'uvloop==0.17.0', | ||
], | ||
zip_safe=False, | ||
author="Tyler Weaver", | ||
author_email="tylerjw@gmail.com", | ||
maintainer="Ignacio Vizzo", | ||
maintainer_email="ignacio.vizzo@dexory.com", | ||
url="https://github.com/botsandus/ament_black", | ||
download_url="https://github.com/botsandus/ament_black/releases", | ||
keywords=["ROS"], | ||
author='Tyler Weaver', | ||
author_email='tylerjw@gmail.com', | ||
maintainer='Ignacio Vizzo', | ||
maintainer_email='ignacio.vizzo@dexory.com', | ||
url='https://github.com/botsandus/ament_black', | ||
download_url='https://github.com/botsandus/ament_black/releases', | ||
keywords=['ROS'], | ||
classifiers=[ | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python", | ||
"Topic :: Software Development", | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python', | ||
'Topic :: Software Development', | ||
], | ||
description="Check Python code style using black.", | ||
description='Check Python code style using black.', | ||
long_description="""\ | ||
The ability to check code against style conventions using black | ||
and generate xUnit test result files.""", | ||
license="Apache License, Version 2.0, BSD", | ||
tests_require=["pytest"], | ||
license='Apache License, Version 2.0, BSD', | ||
tests_require=['pytest'], | ||
entry_points={ | ||
"console_scripts": ["ament_black = ament_black.main:main"], | ||
"pytest11": [ | ||
"ament_black = ament_black.pytest_marker", | ||
'console_scripts': ['ament_black = ament_black.main:main'], | ||
'pytest11': [ | ||
'ament_black = ament_black.pytest_marker', | ||
], | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.