Skip to content

Commit 75d570e

Browse files
authored
Add basic linters (#3)
* Add basic linters * Initial code fix for linters
1 parent f7c231e commit 75d570e

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

.github/workflows/linters.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Linters
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
- name: Python Setup
15+
uses: actions/setup-python@v3
16+
with:
17+
python-version: 3.13
18+
19+
- name: Install libraries
20+
run: |
21+
pip install -e .[development]
22+
23+
- name: mypy
24+
run: mypy ./src
25+
26+
- name: ruff
27+
run: ruff check .
28+
29+
- name: flake8
30+
run: flake8 .

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from setuptools import setup
22

3+
34
def main() -> None:
45
setup()
56

7+
68
if __name__ == '__main__':
79
main()

src/app/hello.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
def hello():
2-
print('ABC')
2+
print('ABC')

0 commit comments

Comments
 (0)