MCPcopy Index your code
hub / github.com/ArjanCodes/2021-code-smells

github.com/ArjanCodes/2021-code-smells @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
28 symbols 67 edges 2 files 23 documented · 82%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

7 Python code smells

This repository contains the code for the Python code smells video on the ArjanCodes channel (watch the video here).

The example is about employees at a company. In before.py, you find the original code (containing 7 code smells + a bonus smell). The after.py file contains the same code, but a lot less smelly.

Core symbols most depended-on inside this repo

add_employee
called by 3
before.py
add_employee
called by 3
after.py
find_employees
called by 3
after.py
take_a_holiday
called by 1
before.py
find_managers
called by 1
before.py
find_vice_presidents
called by 1
before.py
find_interns
called by 1
before.py
pay_employee
called by 1
before.py

Shape

Method 16
Class 10
Function 2

Languages

Python100%

Modules by API surface

after.py16 symbols
before.py12 symbols

For agents

$ claude mcp add 2021-code-smells \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact