Skip to content

Commit

Permalink
style: format code with Autopep8, Black, ClangFormat, dotnet-format, …
Browse files Browse the repository at this point in the history
…Go fmt, Gofumpt, Google Java Format, isort, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf

This commit fixes the style issues introduced in 4d52835 according to the output
from Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java
Format, isort, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt,
Scalafmt, StandardJS, StandardRB, swift-format and Yapf.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored May 1, 2024
1 parent 4d52835 commit d045910
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 51 deletions.
34 changes: 17 additions & 17 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: cpplint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pylint-dev/pylint
rev: v2.17.2
hooks:
- id: pylint
- repo: https://github.com/gitleaks/gitleaks
rev: v8.16.3
hooks:
- id: gitleaks
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: cpplint
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pylint-dev/pylint
rev: v2.17.2
hooks:
- id: pylint
22 changes: 11 additions & 11 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
Examples of behavior that contributes to a positive environment for our
community include:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
- Demonstrating empathy and kindness toward other people
- Being respectful of differing opinions, viewpoints, and experiences
- Giving and gracefully accepting constructive feedback
- Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
- Focusing on what is best not just for us as individuals, but for the
overall community

Examples of unacceptable behavior include:

* The use of sexualized language or imagery, and sexual attention or
- The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
- Trolling, insulting or derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
- Other conduct which could reasonably be considered inappropriate in a
professional setting

## Enforcement Responsibilities
Expand Down Expand Up @@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
### 4. Permanent Ban

**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

**Consequence**: A permanent ban from any sort of public interaction within
Expand Down
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
![image](https://user-images.githubusercontent.com/89728480/226020699-edd873f8-3293-41f7-8a97-75da954a1573.png)

# Flipper Zero

# Flipper Zero
## Is a portable multi-tool for pentesters and geeks in a toy-like body

It loves hacking digital stuff, such as radio protocols, access control systems, hardware and more. It's fully open-source and customizable, so you can extend it in whatever way you like.


### How to Buy ?

[Flipper Zero Shop](https://shop.flipperzero.one/)\
Expand All @@ -15,13 +14,13 @@ It loves hacking digital stuff, such as radio protocols, access control systems,
[just.call.me.koko_Tindie](https://www.tindie.com/stores/justcallmekoko/)\
[just.call.me.koko_New Shop](https://justcallmekokollc.com/)


### Management

[My Flipper](https://lab.flipper.net/)\
[qFlipper](https://flipperzero.one/update)

### Firmwares

[New Firmware Update System](https://blog.flipperzero.one/new-firmware-update-system/)\
[Korai](https://github.com/ankris812/Korai)\
[Unleashed](https://github.com/DarkFlippers/unleashed-firmware)\
Expand All @@ -33,8 +32,8 @@ It loves hacking digital stuff, such as radio protocols, access control systems,
[Muddled](https://github.com/MuddledBox/flipperzero-firmware/tree/muddled_dev)\
[OpenHaystack BLE mod](https://github.com/AlexStrNik/flipperzero-firmware)

### Repos

### Repos
[awesome-flipperzero](https://github.com/djsime1/awesome-flipperzero)\
[DrB0rk](https://github.com/DrB0rk/Flipper-Zero-Boards)\
[UberGuidoZ Playground](https://github.com/UberGuidoZ/Flipper)\
Expand Down Expand Up @@ -91,11 +90,7 @@ It loves hacking digital stuff, such as radio protocols, access control systems,
[hto_yak](https://t.me/hto_yak)\
[esp_es](https://t.me/esp_es)





### Channels
### Channels

[3d printing, soldering, coding and sometimes hacking hardware](https://t.me/containment)\
[FlipperNews](https://t.me/FlipperNews)\
Expand Down
8 changes: 4 additions & 4 deletions cleanthat.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
syntax_version: "2021-08-02"
meta:
labels:
- "cleanthat"
- "cleanthat"
refs:
branches:
- "refs/heads/develop"
- "refs/heads/main"
- "refs/heads/master"
- "refs/heads/develop"
- "refs/heads/main"
- "refs/heads/master"
source_code:
excludes: []
includes: []
Expand Down
8 changes: 4 additions & 4 deletions temperature_monitor/main.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
int fd;
Expand Down
12 changes: 6 additions & 6 deletions temperature_monitor/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ git clone https://github.com/flipperdevices/flipperzero-firmware.git && cd flipp

https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/fbt.md#environment


3. Visual Studio Code integration

```
./fbt vscode_dis
```
Expand All @@ -23,7 +23,7 @@ https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/fb
```

5. Download the `temperature_monitor.py` script into the `tmpc` directory.

```
wget https://raw.githubusercontent.com/4k4xs4pH1r3/Flipper-Zero/main/temperature_monitor/temperature_monitor.py
```
Expand All @@ -42,8 +42,8 @@ cd .. && ./fbt build mtpc

This will compile the `temperature_monitor.py` script into a FAP that can be flashed to the Flipper ZeZero.Here are some additional notes:

* Notes:
- Notes:

* The `fbt build` command will automatically create a build directory for your FAP. The compiled FAP will be located in the `build/latest` directory.
* You can also use the `fbt flash` command to flash the compiled FAP to the Flipper Zero.
* For more information on compiling FAPs, please see the fbt documentation: https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/fbt.md.
- The `fbt build` command will automatically create a build directory for your FAP. The compiled FAP will be located in the `build/latest` directory.
- You can also use the `fbt flash` command to flash the compiled FAP to the Flipper Zero.
- For more information on compiling FAPs, please see the fbt documentation: https://github.com/flipperdevices/flipperzero-firmware/blob/dev/documentation/fbt.md.

0 comments on commit d045910

Please sign in to comment.