Comments (4)
From the black
code styles https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html:
Black also processes docstrings. Firstly the indentation of docstrings is corrected for both quotations and the text within, although relative indentation in the text is preserved. Superfluous trailing whitespace on each line and unnecessary new lines at the end of the docstring are removed. All leading tabs are converted to spaces, but tabs inside text are preserved. Whitespace leading and trailing one-line docstrings is removed.
So it makes sense that when I run black
in my local workspace, it will remove leading and trailing spaces from the docstrings. However, if I push that change, for some reason when black
runs in zuul, it does not remove the leading and trailing spaces from the docstrings
- """ Check if string is a HW/MAC address and filter it """
+ """Check if string is a HW/MAC address and filter it"""
from ansible.utils.
@sebastien-rosset Sorry, we fell behind a bit on the version, it's updated and defined in the precommit config now, which should help keep it updated: https://github.com/ansible-collections/ansible.utils/blob/main/.pre-commit-config.yaml#L17
from ansible.utils.
LMK if that is what you needed and I'll close this issue out.
from ansible.utils.
Thank you!
from ansible.utils.
Related Issues (20)
- remove_keys filter remove empty string from list HOT 2
- :warning: Testing with python3.8 fails HOT 2
- IP address filter to get the last or first X bits of an IP address HOT 1
- subnet_of_test does not work with IPv6 addresses HOT 1
- validate does not resolve external references HOT 1
- No changelog since 2.9.0 HOT 5
- Implment `_requires_connection` for action plugins
- ansible.utils.ip4_hex shall be have an ansible.utils.ip6_hex equivalent and the validate the input
- ipaddr is too eager to evaluate variables types
- Enable AnsibleArgSpecValidator to valdate documentation fragments
- fact_diff show all common lines HOT 1
- Missing a complete changelog / release notes
- breaking changes in netaddr HOT 3
- cli_parse not finding relative template_path when used in role HOT 1
- CLI Parse Parser ansible.netcommon.ntc_templates ntc template fails with /bin/sh: 1: show: not found HOT 5
- ansible.utils.ipaddr('private') filter fails with AttributeError: 'IPAddress' object has no attribute 'is_global' HOT 6
- cli_parse not execute command on remote host HOT 5
- update_fact fails when path contains a key with a bracket in its name
- Failed to import the required Python library (netaddr) HOT 2
- keep_keys doesn't exclude a key if the value is list.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible.utils.