Skip to content

Commit c69b118

Browse files
Twentysix26Tobotimus
authored andcommitted
[Black] Don't normalize underscores in numeric literals (Cog-Creators#2174)
1 parent ad7466a commit c69b118

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Your PR will not be merged until all of these tests pass.
9292
### 4.3 Style
9393
Our style checker of choice, [black](https://github.com/ambv/black), actually happens to be an auto-formatter. The checking functionality simply detects whether or not it would try to reformat something in your code, should you run the formatter on it. For this reason, we recommend using this tool as a formatter, regardless of any disagreements you might have with the style it enforces.
9494

95-
Use the command `black --help` to see how to use this tool. The full style guide is explained in detail on [black's GitHub repository](https://github.com/ambv/black). **There is one exception to this**, however, which is that we set the line length to 99, instead of black's default 88. When using `black` on the command line, simply use it like so: `black -l 99 <src>`.
95+
Use the command `black --help` to see how to use this tool. The full style guide is explained in detail on [black's GitHub repository](https://github.com/ambv/black). **There is one exception to this**, however, which is that we set the line length to 99, instead of black's default 88. When using `black` on the command line, simply use it like so: `black -l 99 -N <src>`.
9696

9797
### 4.4 Make
9898
You may have noticed we have a `Makefile` and a `make.bat` in the top-level directory. For now, you can do two things with them:

make.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ for /F "tokens=* USEBACKQ" %%A in (`git ls-files "*.py"`) do (
1414
goto %1
1515

1616
:reformat
17-
black -l 99 !PYFILES!
17+
black -l 99 -N !PYFILES!
1818
exit /B %ERRORLEVEL%
1919

2020
:stylecheck
21-
black -l 99 --check !PYFILES!
21+
black -l 99 -N --check !PYFILES!
2222
exit /B %ERRORLEVEL%
2323

2424
:help

0 commit comments

Comments
 (0)