Skip to content

Commit a8bafae

Browse files
committed
style: apply pre-commit formatting
1 parent 059a4f3 commit a8bafae

7 files changed

Lines changed: 46 additions & 10 deletions

File tree

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# CODEOWNERS: set the repository owners who should be requested for review
2+
* @YOUR_GITHUB_USERNAME

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/release.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Create Release
14+
uses: actions/create-release@v1
15+
with:
16+
tag_name: ${{ github.ref_name }}
17+
release_name: Release ${{ github.ref_name }}
18+
body: "Automated release for ${{ github.ref_name }}"
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/psf/black
3+
rev: 23.7.0
4+
hooks:
5+
- id: black
6+
language_version: python3
7+
8+
- repo: https://github.com/PyCQA/isort
9+
rev: 5.12.0
10+
hooks:
11+
- id: isort
12+
13+
- repo: https://github.com/pycqa/flake8
14+
rev: 6.1.0
15+
hooks:
16+
- id: flake8

from_roman_to_english.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ def roman_to_int(s: str) -> int:
3030
import sys
3131

3232
arg = sys.argv[1] if len(sys.argv) > 1 else "XII"
33-
print(roman_to_int(arg))
33+
print(roman_to_int(arg))

max_number.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ def find_max(numbers: list) -> int:
1818

1919

2020
if __name__ == "__main__":
21-
print(find_max([3, 1, 4, 2]))
21+
print(find_max([3, 1, 4, 2]))

sigma.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,3 @@ def build_sigma() -> str:
1212

1313
if __name__ == "__main__":
1414
print(build_sigma())
15-
16-
17-
18-
19-
20-
21-
22-

0 commit comments

Comments
 (0)